about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorNODA, Kai <nodakai@gmail.com>2014-11-20 13:51:44 +0800
committerNODA, Kai <nodakai@gmail.com>2014-11-20 14:12:57 +0800
commit102b1a5bf1a60eeafb752844e5c98fe5f4e3b992 (patch)
treec3854d102225c04cc215b3cd1dbf683ec0b87a7e /src
parent399ff259e18c1061aa4ea60856fcecb486d36624 (diff)
downloadrust-102b1a5bf1a60eeafb752844e5c98fe5f4e3b992.tar.gz
rust-102b1a5bf1a60eeafb752844e5c98fe5f4e3b992.zip
test/run-make: some test cases lacked $(EXTRACFLAGS).
Signed-off-by: NODA, Kai <nodakai@gmail.com>
Diffstat (limited to 'src')
-rw-r--r--src/test/run-make/bootstrap-from-c-with-native/Makefile2
-rw-r--r--src/test/run-make/c-link-to-rust-dylib/Makefile2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/test/run-make/bootstrap-from-c-with-native/Makefile b/src/test/run-make/bootstrap-from-c-with-native/Makefile
index c7753a67464..572447097b7 100644
--- a/src/test/run-make/bootstrap-from-c-with-native/Makefile
+++ b/src/test/run-make/bootstrap-from-c-with-native/Makefile
@@ -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)
diff --git a/src/test/run-make/c-link-to-rust-dylib/Makefile b/src/test/run-make/c-link-to-rust-dylib/Makefile
index a5b4430ab6a..2a6cc039485 100644
--- a/src/test/run-make/c-link-to-rust-dylib/Makefile
+++ b/src/test/run-make/c-link-to-rust-dylib/Makefile
@@ -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)