aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Diamond <[email protected]>2014-07-12 01:09:55 -0500
committerRichard Diamond <[email protected]>2014-07-12 01:09:55 -0500
commitee1abc61182cf2a943737b14d5d7afa2210825ce (patch)
treedb7590578c938b654bb9e2baa4fd631b327fba9b
parentFix travis builds (diff)
downloadrust-openssl-ee1abc61182cf2a943737b14d5d7afa2210825ce.tar.xz
rust-openssl-ee1abc61182cf2a943737b14d5d7afa2210825ce.zip
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).
-rw-r--r--Makefile.in3
1 files changed, 2 insertions, 1 deletions
diff --git a/Makefile.in b/Makefile.in
index 62f2e7b5..5b404687 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -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)