Fix symlinking. Without the -f "force" option, the wrong version

can be found.
Submitted by:   Bruce
This commit is contained in:
Mark Murray 1999-01-24 07:51:33 +00:00
parent a9d022882c
commit 1b340441b7
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=43152
2 changed files with 9 additions and 9 deletions

View File

@ -31,26 +31,26 @@ afterinstall:
@cd ${DESTDIR}${SHLIBDIR}; \
if [ ! -e ${LCRYPTSO} ]; then \
rm -f ${LCRYPTSO}; \
ln -s ${LSCRYPTSO} ${LCRYPTSO}; \
ln -sf ${LSCRYPTSO} ${LCRYPTSO}; \
fi
.endif
.if !defined(NOPIC) && ${OBJFORMAT} == elf
@cd ${DESTDIR}${SHLIBDIR}; \
if [ ! -e ${LCRYPTBASE}.so ]; then \
rm -f ${LCRYPTBASE}.so; \
ln -s ${LSCRYPTBASE}.so libcrypt.so; \
ln -sf ${LSCRYPTBASE}.so libcrypt.so; \
fi
.endif
@cd ${DESTDIR}${LIBDIR}; \
if [ ! -e ${LCRYPTBASE}.a ]; then \
rm -f ${LCRYPTBASE}.a; \
ln -s ${LSCRYPTBASE}.a libcrypt.a; \
ln -sf ${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; \
ln -sf ${LSCRYPTBASE}_p.a libcrypt_p.a; \
fi
.endif

View File

@ -1,5 +1,5 @@
#
# $Id$
# $Id: Makefile,v 1.15 1999/01/23 08:26:01 markm Exp $
#
LCRYPTBASE= libcrypt
@ -37,25 +37,25 @@ afterinstall:
@cd $(DESTDIR)/$(LIBDIR); \
if [ ! -e $(LCRYPTSO) ]; then \
rm -f $(LCRYPTSO); \
ln -s $(LDCRYPTSO) $(LCRYPTSO); \
ln -sf $(LDCRYPTSO) $(LCRYPTSO); \
fi
.endif
.if !defined(NOPIC) && defined(SHLIB_MAJOR) && ${OBJFORMAT} == elf
@cd $(DESTDIR)/$(LIBDIR); \
if [ ! -e $(LCRYPTBASE).so ]; then \
rm -f $(LCRYPTBASE).so; \
ln -s $(LDCRYPTBASE).so libcrypt.so; \
ln -sf $(LDCRYPTBASE).so libcrypt.so; \
fi
.endif
@cd $(DESTDIR)/$(LIBDIR); \
if [ ! -e $(LCRYPTBASE).a ]; then \
rm -f $(LCRYPTBASE).a; \
ln -s $(LDCRYPTBASE).a libcrypt.a; \
ln -sf $(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; \
ln -sf $(LDCRYPTBASE)_p.a libcrypt_p.a; \
fi
.endif