summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorcsgr <csgr@FreeBSD.org>1994-08-20 18:13:59 +0000
committercsgr <csgr@FreeBSD.org>1994-08-20 18:13:59 +0000
commitab2cba98870fa7f7f7a6df951535f1f29c2f9b30 (patch)
treeca50aa5b2b271a4ecce41d3726d2c65db3749747 /lib
parente8bc11408c8717bbb72466632e47a9fde3628bf9 (diff)
downloadFreeBSD-src-ab2cba98870fa7f7f7a6df951535f1f29c2f9b30.zip
FreeBSD-src-ab2cba98870fa7f7f7a6df951535f1f29c2f9b30.tar.gz
Fix afterinstall rule for generating links to the real libcrypt
Submitted by: geoff
Diffstat (limited to 'lib')
-rw-r--r--lib/libcrypt/Makefile20
1 files changed, 13 insertions, 7 deletions
diff --git a/lib/libcrypt/Makefile b/lib/libcrypt/Makefile
index ecc3cf3..960e2fb 100644
--- a/lib/libcrypt/Makefile
+++ b/lib/libcrypt/Makefile
@@ -1,5 +1,5 @@
#
-# $Id: Makefile,v 1.2 1994/08/09 18:49:04 csgr Exp $
+# $Id: Makefile,v 1.3 1994/08/12 21:12:37 csgr Exp $
#
LCRYPTBASE= libcrypt
@@ -16,18 +16,24 @@ SRCS= crypt.c
# We only install the links if they do not already exist.
# This may have to be revised
afterinstall:
-.if defined(SHLIB_MAJOR) && !defined(NOSHARED)
- @if [ ! -e $(LCRYPTSO) ]; then \
- cd $(DESTDIR)/$(LIBDIR); \
+.if !defined(NOPIC)
+ @cd $(DESTDIR)/$(LIBDIR); \
+ if [ ! -e $(LCRYPTSO) ]; then \
rm -f $(LCRYPTSO); \
ln -s $(LSCRYPTSO) $(LCRYPTSO); \
fi
.endif
- @if [ ! -e $(LCRYPTBASE).a ]; then \
- cd $(DESTDIR)/$(LIBDIR); \
- rm -f $(LCRYPTBASE).a $(LCRYPTBASE)_p.a; \
+ @cd $(DESTDIR)/$(LIBDIR); \
+ if [ ! -e $(LCRYPTBASE).a ]; then \
+ rm -f $(LCRYPTBASE).a; \
ln -s $(LSCRYPTBASE).a libcrypt.a; \
+ fi
+.if !defined(NOPROFILE)
+ @cd $(DESTDIR)/$(LIBDIR); \
+ if [ ! -e $(LCRYPTBASE)_p.a ]; then \
+ rm -f $(LCRYPTBASE)_p.a; \
ln -s $(LSCRYPTBASE)_p.a libcrypt_p.a; \
fi
+.endif
.include <bsd.lib.mk>
OpenPOWER on IntegriCloud