summaryrefslogtreecommitdiffstats
path: root/lib/libcrypt
diff options
context:
space:
mode:
authorcsgr <csgr@FreeBSD.org>1994-08-12 21:12:37 +0000
committercsgr <csgr@FreeBSD.org>1994-08-12 21:12:37 +0000
commitccd0e11260ec8086a68801802a6d1ff1b4f27110 (patch)
tree370ebab77a1a5895e91313e9cea6b9209344df04 /lib/libcrypt
parent968abb74bcedeb106c222ba80453d070d9fd4b52 (diff)
downloadFreeBSD-src-ccd0e11260ec8086a68801802a6d1ff1b4f27110.zip
FreeBSD-src-ccd0e11260ec8086a68801802a6d1ff1b4f27110.tar.gz
Fix afterinstall rule for NOSHARED case
Submitted by: Geoff Rehmet
Diffstat (limited to 'lib/libcrypt')
-rw-r--r--lib/libcrypt/Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/libcrypt/Makefile b/lib/libcrypt/Makefile
index 30260ca..ecc3cf3 100644
--- a/lib/libcrypt/Makefile
+++ b/lib/libcrypt/Makefile
@@ -1,5 +1,5 @@
#
-# $Id: Makefile,v 1.1.1.1 1994/04/04 14:57:18 g89r4222 Exp $
+# $Id: Makefile,v 1.2 1994/08/09 18:49:04 csgr Exp $
#
LCRYPTBASE= libcrypt
@@ -16,10 +16,15 @@ 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); \
rm -f $(LCRYPTSO); \
ln -s $(LSCRYPTSO) $(LCRYPTSO); \
+ fi
+.endif
+ @if [ ! -e $(LCRYPTBASE).a ]; then \
+ cd $(DESTDIR)/$(LIBDIR); \
rm -f $(LCRYPTBASE).a $(LCRYPTBASE)_p.a; \
ln -s $(LSCRYPTBASE).a libcrypt.a; \
ln -s $(LSCRYPTBASE)_p.a libcrypt_p.a; \
OpenPOWER on IntegriCloud