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:
parent
8696b09140
commit
ee1abc6118
|
|
@ -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)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue