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
This commit is contained in:
er-1 2017-03-01 12:17:27 +01:00
parent b671c32ddc
commit 05aadd2933
1 changed files with 2 additions and 2 deletions

View File

@ -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: