Merge pull request #28 from DiamondLovesYou/master

Add $(RUSTFLAGS) to the shell that gets crate file names.
This commit is contained in:
Steven Fackler 2014-07-11 23:23:57 -07:00
commit ffbf65be9f
1 changed files with 2 additions and 1 deletions

View File

@ -5,7 +5,8 @@ RUSTFLAGS += -O --cfg ndebug $(RUSTCFGS)
INSTALL_DIR := %PREFIX%
OPENSSL_LIB := lib.rs
OPENSSL := $(foreach file,$(shell $(RUSTC) --print-file-name $(OPENSSL_LIB)),$(BUILDDIR)/$(file))
OPENSSL := $(foreach file, \
$(shell $(RUSTC) $(RUSTFLAGS) --print-file-name $(OPENSSL_LIB)),$(BUILDDIR)/$(file))
OPENSSL_TEST := $(BUILDDIR)/$(shell $(RUSTC) --test --print-file-name $(OPENSSL_LIB))
all: $(OPENSSL)