From: Kurt Zeilenga Date: Sun, 1 Oct 2000 16:33:48 +0000 (+0000) Subject: Use -rpath consistently X-Git-Tag: LDBM_PRE_GIANT_RWLOCK~1845 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=17d9a263d1bf083ef673f5520c7044219d6985dc;p=openldap Use -rpath consistently --- diff --git a/build/lib-shared.mk b/build/lib-shared.mk index 3952bcf3c9..58636cb4fa 100644 --- a/build/lib-shared.mk +++ b/build/lib-shared.mk @@ -14,8 +14,8 @@ NT_DYN_LT_NO_UNDEF = -no-undefined LT_NO_UNDEF = $(@PLAT@_@LIB_LINKAGE@_LT_NO_UNDEF) COMPILE = $(LIBTOOL) $(LTFLAGS) --mode=compile $(CC) $(CFLAGS) $(EXTRA_DEFS) -c -LTLIBLINK = $(LIBTOOL) $(LTFLAGS) --mode=link $(CC) $(CFLAGS) $(LDFLAGS) \ - $(LTVERSION) $(LT_NO_UNDEF) +LTLIBLINK = $(LIBTOOL) $(LTFLAGS) --mode=link -rpath $(libdir) \ + $(CC) $(CFLAGS) $(LDFLAGS) $(LTVERSION) $(LT_NO_UNDEF) MKDEPFLAG = -l @@ -31,7 +31,7 @@ MKDEPFLAG = -l DYN_EXT=@DYN_EXT@ $(LIBRARY): version.lo - $(LTLIBLINK) -rpath $(libdir) -o $@ $(OBJS) version.lo $(EXTRA_LIBS) + $(LTLIBLINK) -o $@ $(OBJS) version.lo $(EXTRA_LIBS) $(RM) ../$@ d=`$(PWD)`; d=`$(BASENAME) $$d`; cd ..; $(LN_S) $$d/$@ $@; \ t=`$(BASENAME) $@ .la`.a; $(RM) $$t; $(LN_S) $$d/.libs/$$t $$t diff --git a/build/mod.mk b/build/mod.mk index 7433cf0789..e3733ca9fb 100644 --- a/build/mod.mk +++ b/build/mod.mk @@ -13,8 +13,8 @@ LIBSTAT = lib$(LIBBASE).a LTFLAGS = --only-$(LINKAGE) COMPILE = $(LIBTOOL) $(LTFLAGS) --mode=compile $(CC) $(CFLAGS) $(MODDEFS) -c -LTLIBLINK = $(LIBTOOL) $(LTFLAGS) --mode=link $(CC) $(CFLAGS) $(LDFLAGS) \ - $(LTVERSION) $(LT_NO_UNDEF) +LTLIBLINK = $(LIBTOOL) $(LTFLAGS) --mode=link -rpath $(moduledir) \ + $(CC) $(CFLAGS) $(LDFLAGS) $(LTVERSION) $(LT_NO_UNDEF) MKDEPFLAG = -l @@ -33,7 +33,7 @@ version.c: $(OBJS) $(MKVERSION) $(LIBBASE) > $@ $(LIBRARY): $(MODDEPS) version.lo - $(LTLIBLINK) -module -rpath $(moduledir) -o $@ $(OBJS) version.lo \ + $(LTLIBLINK) -module -o $@ $(OBJS) version.lo \ $(MODLIBS) $(LIBSTAT): version.lo diff --git a/build/top.mk b/build/top.mk index 1660a74656..10b63e319e 100644 --- a/build/top.mk +++ b/build/top.mk @@ -57,7 +57,8 @@ MKVERSION = $(top_srcdir)/build/mkversion -v "$(VERSION)" LIBTOOL = @LIBTOOL@ LIBVERSION = @OPENLDAP_LIBVERSION@ LTVERSION = -version-info $(LIBVERSION) -LTLINK = $(LIBTOOL) --mode=link $(CC) $(CFLAGS) $(LDFLAGS) +LTLINK = $(LIBTOOL) --mode=link -rpath $(libdir) \ + $(CC) $(CFLAGS) $(LDFLAGS) LTINSTALL = $(LIBTOOL) --mode=install $(INSTALL) # Misc UNIX commands used in build environment