summaryrefslogtreecommitdiff
path: root/devel
diff options
context:
space:
mode:
authorsketch <sketch@pkgsrc.org>2004-11-15 12:19:40 +0000
committersketch <sketch@pkgsrc.org>2004-11-15 12:19:40 +0000
commit2f72bfc85de392cf5f0c68f422033e5d9cef65ac (patch)
tree06dfd77f6ae39f6d5b65e2e848b0bbcdf11b6606 /devel
parent49c21d749c7856b2b7ca7ee4910a32e851168d4d (diff)
downloadpkgsrc-2f72bfc85de392cf5f0c68f422033e5d9cef65ac.tar.gz
Not all implementations of ln(1) can handle -fs arguments where the target
still exists. Explicitly rm the target before ln.
Diffstat (limited to 'devel')
-rw-r--r--devel/libltdl/convenience.mk11
1 files changed, 7 insertions, 4 deletions
diff --git a/devel/libltdl/convenience.mk b/devel/libltdl/convenience.mk
index c7a0d6ee008..6baf5bcc782 100644
--- a/devel/libltdl/convenience.mk
+++ b/devel/libltdl/convenience.mk
@@ -1,4 +1,4 @@
-# $NetBSD: convenience.mk,v 1.3 2004/11/05 17:31:28 tv Exp $
+# $NetBSD: convenience.mk,v 1.4 2004/11/15 12:19:40 sketch Exp $
#
# Override "libltdlc.la" -- the libltdl "convenience" library embedded into
# programs that ship with libltdl. Also override packages attempting to
@@ -9,8 +9,11 @@ fix-libltdlc:
${ECHO} 'all install clean:' >${WRKSRC}/libltdl/Makefile.in
${ECHO} 'all install clean:' >${WRKSRC}/libltdl/Makefile
${RM} -f ${WRKSRC}/libltdl/Makefile.am ${WRKSRC}/libltdl/configure*
- ${LN} -fs ${BUILDLINK_DIR}/include/ltdl.h ${WRKSRC}/libltdl/ltdl.h
- ${LN} -fs ${BUILDLINK_DIR}/lib/libltdl.la ${WRKSRC}/libltdl/libltdl.la
- ${LN} -fs ${BUILDLINK_DIR}/lib/libltdl.la ${WRKSRC}/libltdl/libltdlc.la
+ ${RM} -f ${WRKSRC}/libltdl/ltdl.h
+ ${LN} -s ${BUILDLINK_DIR}/include/ltdl.h ${WRKSRC}/libltdl/ltdl.h
+ ${RM} -f ${WRKSRC}/libltdl/libltdl.la
+ ${LN} -s ${BUILDLINK_DIR}/lib/libltdl.la ${WRKSRC}/libltdl/libltdl.la
+ ${RM} -f ${WRKSRC}/libltdl/libltdlc.la
+ ${LN} -s ${BUILDLINK_DIR}/lib/libltdl.la ${WRKSRC}/libltdl/libltdlc.la
.include "../../devel/libltdl/buildlink3.mk"