summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2005-07-14 04:16:21 +0000
committerMike Frysinger <vapier@gentoo.org>2005-07-14 04:16:21 +0000
commit56e9950bf36b488810cedbf440999ea40c0cd29a (patch)
tree954ae89a9ad82de35fd58dbd4a8ebccbd6ea6b8c /test
parentf80ef6bcb8101bb119076917972d1bf233ea3db1 (diff)
when running shared tests, use the toplevel ldso
Diffstat (limited to 'test')
-rw-r--r--test/Rules.mak4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/Rules.mak b/test/Rules.mak
index 63e5cdd28..20000cc35 100644
--- a/test/Rules.mak
+++ b/test/Rules.mak
@@ -77,7 +77,7 @@ XWARNINGS = $(subst ",, $(strip $(WARNINGS))) -Wstrict-prototypes
XARCH_CFLAGS = $(subst ",, $(strip $(ARCH_CFLAGS)))
CFLAGS = $(XWARNINGS) $(OPTIMIZATION) $(XARCH_CFLAGS)
GLIBC_CFLAGS += $(XWARNINGS) $(OPTIMIZATION)
-LDFLAGS =
+LDFLAGS =
ifeq ($(DODEBUG),y)
CFLAGS += -g
@@ -94,4 +94,6 @@ endif
ifneq ($(strip $(HAVE_SHARED)),y)
LDFLAGS += -static
GLIBC_LDFLAGS += -static
+else
+ LDFLAGS += -Wl,-dynamic-linker,$(TOPDIR)lib/ld-uClibc.so.0
endif