d-missing-ref-dlsym-ppc64el
authorRust Maintainers <pkg-rust-maintainers@lists.alioth.debian.org>
Sun, 12 Mar 2017 03:15:33 +0000 (03:15 +0000)
committerXimin Luo <infinity0@debian.org>
Sun, 12 Mar 2017 03:15:33 +0000 (03:15 +0000)
Gbp-Pq: Name d-missing-ref-dlsym-ppc64el.patch

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

index 7a0cbfcf517b7133664923a560be2dd6ba10a32a..2ed971bf7d9701659816e74e8553bfe863cdd9e1 100644 (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: