diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libkrb5/Makefile | 19 |
1 files changed, 15 insertions, 4 deletions
diff --git a/lib/libkrb5/Makefile b/lib/libkrb5/Makefile index f4f878dffae..4bf08159dee 100644 --- a/lib/libkrb5/Makefile +++ b/lib/libkrb5/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.10 2003/07/14 16:14:43 mho Exp $ +# $OpenBSD: Makefile,v 1.11 2003/07/14 16:15:32 mho Exp $ KRB5DIR= ${.CURDIR}/../../kerberosV GENDIR= ${.CURDIR}/generated @@ -88,12 +88,23 @@ SHLIB_LINKS = kafs asn1 ALIB_LINKS = $(SHLIB_LINKS) hdb com_err afterinstall: +.if !defined(NOPIC) for f in $(SHLIB_LINKS); do \ - ln -f $(DESTDIR)/$(LIBDIR)/lib$(LIB).so.$(SHLIB_MAJOR).$(SHLIB_MINOR) \ - $(DESTDIR)$(LIBDIR)/lib$$f.so.$(SHLIB_MAJOR).$(SHLIB_MINOR) ;\ + ln -f $(DESTDIR)$(LIBDIR)/lib$(LIB).so.$(SHLIB_MAJOR).$(SHLIB_MINOR) \ + $(DESTDIR)$(LIBDIR)/lib$$f.so.$(SHLIB_MAJOR).$(SHLIB_MINOR) ;\ + done + for f in $(SHLIB_LINKS); do \ + ln -f $(DESTDIR)$(LIBDIR)/lib$(LIB)_pic.a \ + $(DESTDIR)$(LIBDIR)/lib$${f}_pic.a ;\ + done +.endif + for f in $(ALIB_LINKS); do \ + ln -f $(DESTDIR)$(LIBDIR)/lib$(LIB).a \ + $(DESTDIR)$(LIBDIR)/lib$$f.a ; \ done for f in $(ALIB_LINKS); do \ - ln -f $(DESTDIR)/$(LIBDIR)/lib$(LIB).a $(DESTDIR)$(LIBDIR)/lib$$f.a ; \ + ln -f $(DESTDIR)$(LIBDIR)/lib$(LIB)_p.a \ + $(DESTDIR)$(LIBDIR)/lib$${f}_p.a ; \ done .include <bsd.lib.mk> |