summaryrefslogtreecommitdiff
path: root/Mk/Uses/libtool.mk
diff options
context:
space:
mode:
authorTijl Coosemans <tijl@FreeBSD.org>2014-09-05 15:31:31 +0000
committerTijl Coosemans <tijl@FreeBSD.org>2014-09-05 15:31:31 +0000
commitbb417889295cd865b653ef5178c219bd1990cd3c (patch)
treec4de9e474e86d1c7990e9c7b14f3ca7c47ba3555 /Mk/Uses/libtool.mk
parentDocument trafficserver vulnerability (diff)
After patching configure restore the original modification time. This
avoids running makefile targets that depend on configure such as the PDF documentation in textproc/flex. Reported by: hrs Approved by: portmgr (bapt)
Notes
Notes: svn path=/head/; revision=367345
Diffstat (limited to 'Mk/Uses/libtool.mk')
-rw-r--r--Mk/Uses/libtool.mk10
1 files changed, 6 insertions, 4 deletions
diff --git a/Mk/Uses/libtool.mk b/Mk/Uses/libtool.mk
index 1f9e3024aad4..40eac476b5f0 100644
--- a/Mk/Uses/libtool.mk
+++ b/Mk/Uses/libtool.mk
@@ -31,14 +31,15 @@ _INCLUDE_USES_LIBTOOL_POST_MK= yes
patch-libtool:
@${FIND} ${WRKDIR} \( -name configure -or -name ltconfig \) \
- -type f | ${XARGS} ${REINPLACE_CMD} \
+ -type f | while read i; do ${SED} -i.bak \
-e '/dragonfly\*/!s/^ *freebsd\*[ )]/dragonfly* | &/' \
-e '/gcc_dir=\\`/s/gcc /$$CC /' \
-e '/gcc_ver=\\`/s/gcc /$$CC /' \
-e '/link_all_deplibs[0-9A-Z_]*=/s/=unknown/=no/' \
-e '/objformat=/s/echo aout/echo elf/' \
-e "/freebsd-elf\\*)/,/;;/ { \
- /deplibs_check_method=/s/=.*/=pass_all/; }"
+ /deplibs_check_method=/s/=.*/=pass_all/; }" \
+ $${i} && ${TOUCH} -mr $${i}.bak $${i}; done
@${FIND} ${WRKDIR} -type f -name ltmain.sh | \
${XARGS} ${REINPLACE_CMD} \
@@ -48,7 +49,7 @@ patch-libtool:
.if ! ${libtool_ARGS:Moldver}
@${FIND} ${WRKDIR} \( -name configure -or -name ltconfig \) \
- -type f | ${XARGS} ${REINPLACE_CMD} \
+ -type f | while read i; do ${SED} -i.bak \
-e "/freebsd-elf\\*)/,/;;/ { \
/library_names_spec=.*\\.so/ \
s/=.*/='\$$libname\$$release.so\$$versuffix \
@@ -58,7 +59,8 @@ patch-libtool:
s/=.*/='\$$libname\$$release\$$shared_ext\$$versuffix \
\$$libname\$$release\$$shared_ext\$$major \
\$$libname\$$shared_ext' \
- soname_spec='\$$libname\$$release\$$shared_ext\$$major'/; }"
+ soname_spec='\$$libname\$$release\$$shared_ext\$$major'/; \
+ }" $${i} && ${TOUCH} -mr $${i}.bak $${i}; done
@${FIND} ${WRKDIR} -type f -name ltmain.sh | \
${XARGS} ${REINPLACE_CMD} \