summaryrefslogtreecommitdiff
path: root/Mk/Uses/libtool.mk
diff options
context:
space:
mode:
authorTijl Coosemans <tijl@FreeBSD.org>2014-03-02 13:14:07 +0000
committerTijl Coosemans <tijl@FreeBSD.org>2014-03-02 13:14:07 +0000
commit477efa96a0dd148d10e9761eff8240f3d76eae05 (patch)
treedea12620c0218f2ef6cbfc07a335dbc9ae6bd94b /Mk/Uses/libtool.mk
parent- error out early if users trying to break their base system (diff)
In libtool.mk, let the regexp for DragonFly BSD support match both
"freebsd*)" and "freebsd* ", and add "dragonfly*" only if it isn't there already. Approved by: bapt
Notes
Notes: svn path=/head/; revision=346763
Diffstat (limited to 'Mk/Uses/libtool.mk')
-rw-r--r--Mk/Uses/libtool.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/Mk/Uses/libtool.mk b/Mk/Uses/libtool.mk
index 92994f3a9ad9..aecc226b0993 100644
--- a/Mk/Uses/libtool.mk
+++ b/Mk/Uses/libtool.mk
@@ -19,10 +19,10 @@ _INCLUDE_USES_LIBTOOL_POST_MK= yes
patch-libtool:
@${FIND} ${WRKDIR} \( -name configure -or -name ltconfig \) \
-type f | ${XARGS} ${REINPLACE_CMD} \
+ -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 's,freebsd\*),freebsd\*|dragonfly\*),g' \
-e '/objformat=/s/echo aout/echo elf/' \
-e "/freebsd-elf\\*)/,/;;/ { \
/deplibs_check_method=/s/=.*/=pass_all/; }"