diff options
author | csgr <csgr@FreeBSD.org> | 1994-08-20 18:16:57 +0000 |
---|---|---|
committer | csgr <csgr@FreeBSD.org> | 1994-08-20 18:16:57 +0000 |
commit | ec3eb0ab365993b67d0ff37ab736eb414ba261c4 (patch) | |
tree | 1e1ee8c16800e06ce52f0b3e0ef2dcf3ab9bd085 /secure/lib/libcrypt | |
parent | ab2cba98870fa7f7f7a6df951535f1f29c2f9b30 (diff) | |
download | FreeBSD-src-ec3eb0ab365993b67d0ff37ab736eb414ba261c4.zip FreeBSD-src-ec3eb0ab365993b67d0ff37ab736eb414ba261c4.tar.gz |
Fix afterinstall rule for generating links to the real libcrypt
Submitted by: Geoff
Diffstat (limited to 'secure/lib/libcrypt')
-rw-r--r-- | secure/lib/libcrypt/Makefile | 24 |
1 files changed, 16 insertions, 8 deletions
diff --git a/secure/lib/libcrypt/Makefile b/secure/lib/libcrypt/Makefile index a290fc3..25351fd 100644 --- a/secure/lib/libcrypt/Makefile +++ b/secure/lib/libcrypt/Makefile @@ -1,5 +1,5 @@ # -# $Id: Makefile,v 1.3 1994/08/09 18:52:52 csgr Exp $ +# $Id: Makefile,v 1.4 1994/08/12 21:02:31 csgr Exp $ # LCRYPTBASE= libcrypt @@ -18,25 +18,33 @@ SRCS= crypt.c -.include <bsd.lib.mk> test: cd test ; make test ; make clean +.include <bsd.lib.mk> + # 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) && defined(SHLIB_MAJOR) + @cd $(DESTDIR)/$(LIBDIR); \ + if [ ! -e $(LCRYPTSO) ]; then \ rm -f $(LCRYPTSO); \ ln -s $(LDCRYPTSO) $(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 $(LDCRYPTBASE).a libcrypt.a; \ + fi +.if !defined(NOPROFILE) + @cd $(DESTDIR)/$(LIBDIR); \ + if [ ! -e $(LCRYPTBASE)_p.a ]; then \ + rm -f $(LCRYPTBASE)_p.a; \ ln -s $(LDCRYPTBASE)_p.a libcrypt_p.a; \ fi +.endif + |