summaryrefslogtreecommitdiffstats
path: root/ldap/admin/lib
diff options
context:
space:
mode:
authorRich Megginson <rmeggins@redhat.com>2005-03-11 03:55:33 +0000
committerRich Megginson <rmeggins@redhat.com>2005-03-11 03:55:33 +0000
commit1ad31fcefd33dd67c3c551033603e4748046afd9 (patch)
tree5faee0bb8e9883881d2a51cf1cf8a5dda24718e0 /ldap/admin/lib
parent99e636a0e44c874473e8e0f07e3dcf0dbeaa88f0 (diff)
downloadds-1ad31fcefd33dd67c3c551033603e4748046afd9.tar.gz
ds-1ad31fcefd33dd67c3c551033603e4748046afd9.tar.xz
ds-1ad31fcefd33dd67c3c551033603e4748046afd9.zip
add link debugging for debug builds on linux
Diffstat (limited to 'ldap/admin/lib')
-rw-r--r--ldap/admin/lib/Makefile7
1 files changed, 7 insertions, 0 deletions
diff --git a/ldap/admin/lib/Makefile b/ldap/admin/lib/Makefile
index a7c35ced..68b02bc7 100644
--- a/ldap/admin/lib/Makefile
+++ b/ldap/admin/lib/Makefile
@@ -78,6 +78,13 @@ LINK_DLL += -z defs
EXTRA_LIBS += -lc
endif
+ifneq ($(BUILD_DEBUG), optimize)
+ifeq ($(ARCH), Linux)
+LINK_DLL += -Wl,--no-allow-shlib-undefined
+EXTRA_LIBS += -lc -lpthread -ldl /lib/ld-linux.so.2
+endif
+endif
+
all: $(LIBS) $(LDAP_ADMDLL_RELDLLS)
$(LIBS): $(OBJDEST) $(LDAP_ADMDLLDIR) $(LDAP_ADMLIBDIR) $(OBJS) $(EXTRA_LIBS_DEP)