about summary refs log tree commit diff
diff options
context:
space:
mode:
authorer-1 <gh@17o2.net>2017-03-01 12:17:27 +0100
committerer-1 <gh@17o2.net>2017-03-01 12:17:27 +0100
commit05aadd29334fa730b4860a8b51e8ffade8456266 (patch)
tree0378f2f402af28e099b37bf91141198eca26615e
parentb671c32ddc8c36d50866428d83b7716233356721 (diff)
downloadrust-05aadd29334fa730b4860a8b51e8ffade8456266.tar.gz
rust-05aadd29334fa730b4860a8b51e8ffade8456266.zip
Add a reference to the dl library to the Makefile of the test issue-24445.
It prevents the test to fail on ppc64el at least.

Part of #39015
-rw-r--r--src/test/run-make/issue-24445/Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/run-make/issue-24445/Makefile b/src/test/run-make/issue-24445/Makefile
index 7a0cbfcf517..2ed971bf7d9 100644
--- a/src/test/run-make/issue-24445/Makefile
+++ b/src/test/run-make/issue-24445/Makefile
@@ -3,9 +3,9 @@
 ifeq ($(UNAME),Linux)
 all:
 	$(RUSTC) foo.rs
-	$(CC) foo.c -lfoo -L $(TMPDIR) -Wl,--gc-sections -lpthread -o $(TMPDIR)/foo
+	$(CC) foo.c -lfoo -L $(TMPDIR) -Wl,--gc-sections -lpthread -ldl -o $(TMPDIR)/foo
 	$(call RUN,foo)
-	$(CC) foo.c -lfoo -L $(TMPDIR) -Wl,--gc-sections -lpthread -pie -fPIC -o $(TMPDIR)/foo
+	$(CC) foo.c -lfoo -L $(TMPDIR) -Wl,--gc-sections -lpthread -ldl -pie -fPIC -o $(TMPDIR)/foo
 	$(call RUN,foo)
 else
 all: