]> git.sur5r.net Git - openldap/blobdiff - build/lib-shared.mk
s/Id/OpenLDAP/ in RCSids
[openldap] / build / lib-shared.mk
index b0778be22ddaf7baf6973440ef5f883ea139e78d..776972ac6d86bb4686769e883ec8f22f73ba0ec8 100644 (file)
@@ -1,9 +1,12 @@
+# $OpenLDAP$
+## Copyright 1998,1999 The OpenLDAP Foundation
+## COPYING RESTRICTIONS APPLY.  See COPYRIGHT File in top level directory
+## of this package for details.
 ##---------------------------------------------------------------------------
 ##
 ## Makefile Template for Shared Libraries
 ##
 
-LINK    = $(LTLINK) -version-info $(LIBVERSION)
 COMPILE = $(LIBTOOL) --mode=compile $(CC) $(CFLAGS) -c
 MKDEPFLAG = -l
 
@@ -13,8 +16,10 @@ MKDEPFLAG = -l
        $(COMPILE) $<
 
 $(LIBRARY):  version.lo
-       $(LINK) -rpath $(libdir) -o $@ $(OBJS) version.lo
-       @$(RM) ../$@;   \
+       $(LTLIBLINK) -rpath $(libdir) -o $@ $(OBJS) version.lo
+       $(RM) ../$@;    \
        (d=`$(PWD)` ; $(LN_S) `$(BASENAME) $$d`/$@ ../$@)
+       $(RM) ../`$(BASENAME) $@ .la`.a;        \
+       (d=`$(PWD)`; t=`$(BASENAME) $@ .la`.a; $(LN_S) `$(BASENAME) $$d`/.libs/$$t ../$$t)
 
 Makefile: $(top_srcdir)/build/lib-shared.mk