Commit ee1abc61 authored by Richard Diamond's avatar Richard Diamond
Browse files

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).
parent 8696b091
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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)