summaryrefslogtreecommitdiff
path: root/devel
diff options
context:
space:
mode:
authorsketch <sketch>2004-11-15 12:19:40 +0000
committersketch <sketch>2004-11-15 12:19:40 +0000
commit756669e7fa16f8dfd8c47f10720df2fedf917e94 (patch)
tree06dfd77f6ae39f6d5b65e2e848b0bbcdf11b6606 /devel
parent1cf47cb69de34d79f71d6e297d6f837cddcd8a60 (diff)
downloadpkgsrc-756669e7fa16f8dfd8c47f10720df2fedf917e94.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"