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

can be found.
Submitted by:   Bruce
This commit is contained in:
markm 1999-01-24 07:51:33 +00:00
parent f9b33c6dc5
commit b8535c2b1b
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