libhugetlbfs/libhugetlbfs.exchange_library_order.patch
OBS User autobuild 2e4491a314 Accepting request 24429 from Base:System
Copy from Base:System/libhugetlbfs based on submit request 24429 from user msmeissn

OBS-URL: https://build.opensuse.org/request/show/24429
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libhugetlbfs?expand=0&rev=13
2009-11-16 16:17:15 +00:00

27 lines
802 B
Diff

Force --no-as-needed linker option
Otherwise things won't link.
Having --as-needed be set in a build environment can give you
quite some headache to find out why it links the one, but not
the other way.
Signed-off-by: Thomas Renninger <trenn@suse.de>
---
tests/Makefile | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
Index: libhugetlbfs-2.5/tests/Makefile
===================================================================
--- libhugetlbfs-2.5.orig/tests/Makefile
+++ libhugetlbfs-2.5/tests/Makefile
@@ -26,7 +26,7 @@ BADTOOLCHAIN = bad-toolchain.sh
CFLAGS = -O2 -Wall -g
CPPFLAGS = -I..
-LDLIBS = -ldl -lpthread -lhugetlbfs_privutils
+LDLIBS = -Wl,--no-as-needed -ldl -lpthread -lhugetlbfs_privutils
LDFLAGS32 = -L../obj32
LDFLAGS64 = -L../obj64
INSTALL = install