Add $(RUSTFLAGS) to the shell that gets crate file names.

This is for crosses that don't support certain crate types (ie PNaCl doesn't support dylibs).
This commit is contained in:
Richard Diamond 2014-07-12 01:09:55 -05:00
parent 8696b09140
commit ee1abc6118
1 changed files with 2 additions and 1 deletions

View File

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