From ee1abc61182cf2a943737b14d5d7afa2210825ce Mon Sep 17 00:00:00 2001 From: Richard Diamond Date: Sat, 12 Jul 2014 01:09:55 -0500 Subject: [PATCH] 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). --- Makefile.in | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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)