Skip to content

Commit 05aadd2

Browse files
committed
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 rust-lang#39015
1 parent b671c32 commit 05aadd2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/test/run-make/issue-24445/Makefile

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
ifeq ($(UNAME),Linux)
44
all:
55
$(RUSTC) foo.rs
6-
$(CC) foo.c -lfoo -L $(TMPDIR) -Wl,--gc-sections -lpthread -o $(TMPDIR)/foo
6+
$(CC) foo.c -lfoo -L $(TMPDIR) -Wl,--gc-sections -lpthread -ldl -o $(TMPDIR)/foo
77
$(call RUN,foo)
8-
$(CC) foo.c -lfoo -L $(TMPDIR) -Wl,--gc-sections -lpthread -pie -fPIC -o $(TMPDIR)/foo
8+
$(CC) foo.c -lfoo -L $(TMPDIR) -Wl,--gc-sections -lpthread -ldl -pie -fPIC -o $(TMPDIR)/foo
99
$(call RUN,foo)
1010
else
1111
all:

0 commit comments

Comments
 (0)