Skip to content

Commit

Permalink
Add a reference to the dl library to the Makefile of the test issue-2…
Browse files Browse the repository at this point in the history
…4445.

It prevents the test to fail on ppc64el at least.

Part of #39015
  • Loading branch information
er-1 committed Mar 1, 2017
1 parent b671c32 commit 05aadd2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/test/run-make/issue-24445/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 05aadd2

Please sign in to comment.