auto merge of #19133 : nodakai/rust/run-make-tests-missing-extracflags, r=alexcrichton

Missing `$(EXTRACFLAGS)` resutled in compile failures.
This commit is contained in:
bors 2014-11-22 14:46:38 +00:00
commit caec7b0414
2 changed files with 2 additions and 2 deletions

View File

@ -6,7 +6,7 @@ TARGET_RPATH_DIR:=$(TARGET_RPATH_DIR):$(TMPDIR)
all:
$(RUSTC) lib.rs
$(CC) main.c -o $(call RUN_BINFILE,main) $(call RPATH_LINK_SEARCH,$(HOST_LIB_DIR)) -lboot
$(CC) main.c -o $(call RUN_BINFILE,main) $(call RPATH_LINK_SEARCH,$(HOST_LIB_DIR)) -lboot $(EXTRACFLAGS)
$(call RUN,main)
$(call REMOVE_DYLIBS,boot)
$(call FAIL,main)

View File

@ -4,7 +4,7 @@ HOST_LIB_DIR=$(TMPDIR)/../../../stage$(RUST_BUILD_STAGE)/lib
all:
$(RUSTC) foo.rs
$(CC) bar.c -lfoo -o $(call RUN_BINFILE,bar) $(call RPATH_LINK_SEARCH,$(HOST_LIB_DIR)) -Wl,-rpath,$(TMPDIR)
$(CC) bar.c -lfoo -o $(call RUN_BINFILE,bar) $(call RPATH_LINK_SEARCH,$(HOST_LIB_DIR)) -Wl,-rpath,$(TMPDIR) $(EXTRACFLAGS)
$(call RUN,bar)
$(call REMOVE_DYLIBS,foo)
$(call FAIL,bar)