summaryrefslogtreecommitdiffstats
path: root/secure
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>1997-09-05 12:21:22 +0000
committerpeter <peter@FreeBSD.org>1997-09-05 12:21:22 +0000
commit088ca8113e7be1fdd188cbf121f3938e2f9bb30a (patch)
treefe202f3c666327484279fcfaddef1504e29349eb /secure
parent83e3c439a7dab0261f60a560f3c0456d44bf912c (diff)
downloadFreeBSD-src-088ca8113e7be1fdd188cbf121f3938e2f9bb30a.zip
FreeBSD-src-088ca8113e7be1fdd188cbf121f3938e2f9bb30a.tar.gz
Teach libdescrypt about elf builds.
Diffstat (limited to 'secure')
-rw-r--r--secure/lib/libcrypt/Makefile22
1 files changed, 19 insertions, 3 deletions
diff --git a/secure/lib/libcrypt/Makefile b/secure/lib/libcrypt/Makefile
index 39c64ab..fa82e94 100644
--- a/secure/lib/libcrypt/Makefile
+++ b/secure/lib/libcrypt/Makefile
@@ -1,12 +1,17 @@
#
-# $Id$
+# $Id: Makefile,v 1.12 1997/02/22 14:40:27 peter Exp $
#
LCRYPTBASE= libcrypt
-LCRYPTSO= $(LCRYPTBASE).so.$(SHLIB_MAJOR).$(SHLIB_MINOR)
-
LDCRYPTBASE= libdescrypt
+
+.if ${BINFORMAT} != elf
+LCRYPTSO= $(LCRYPTBASE).so.$(SHLIB_MAJOR).$(SHLIB_MINOR)
LDCRYPTSO= $(LDCRYPTBASE).so.$(SHLIB_MAJOR).$(SHLIB_MINOR)
+.else
+LCRYPTSO= $(LCRYPTBASE).so.$(SHLIB_MAJOR)
+LDCRYPTSO= $(LDCRYPTBASE).so.$(SHLIB_MAJOR)
+.endif
.PATH: ${.CURDIR}/../../../lib/libmd
@@ -16,6 +21,10 @@ MAN3= crypt.3
CFLAGS+= -I${.CURDIR}/../../../lib/libmd -Wall
PRECIOUSLIB= yes
+.if ${BINFORMAT} == elf
+SONAME= ${LCRYPTBASE}.so.$(SHLIB_MAJOR)
+.endif
+
test:
cd test ; make test ; make clean
@@ -31,6 +40,13 @@ afterinstall:
ln -s $(LDCRYPTSO) $(LCRYPTSO); \
fi
.endif
+.if !defined(NOPIC) && defined(SHLIB_MAJOR) && ${BINFORMAT} == elf
+ @cd $(DESTDIR)/$(LIBDIR); \
+ if [ ! -e $(LCRYPTBASE).so ]; then \
+ rm -f $(LCRYPTBASE).so; \
+ ln -s $(LDCRYPTBASE).so libcrypt.so; \
+ fi
+.endif
@cd $(DESTDIR)/$(LIBDIR); \
if [ ! -e $(LCRYPTBASE).a ]; then \
rm -f $(LCRYPTBASE).a; \
OpenPOWER on IntegriCloud