diff options
author | Tijl Coosemans <tijl@FreeBSD.org> | 2014-02-27 09:51:45 +0000 |
---|---|---|
committer | Tijl Coosemans <tijl@FreeBSD.org> | 2014-02-27 09:51:45 +0000 |
commit | 85fb32d6119664c44e8f6fb651c6f8e6abe11ecd (patch) | |
tree | 20c29bc3692602170fb3e35b18084dc0f3899aa4 /Mk | |
parent | 8a85f4a23109bd8a7b2ca8b47a17b853bc45598a (diff) |
Notes
Diffstat (limited to 'Mk')
-rw-r--r-- | Mk/Uses/libtool.mk | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Mk/Uses/libtool.mk b/Mk/Uses/libtool.mk index 89d2e3af9e02..92994f3a9ad9 100644 --- a/Mk/Uses/libtool.mk +++ b/Mk/Uses/libtool.mk @@ -19,12 +19,18 @@ _INCLUDE_USES_LIBTOOL_POST_MK= yes patch-libtool: @${FIND} ${WRKDIR} \( -name configure -or -name ltconfig \) \ -type f | ${XARGS} ${REINPLACE_CMD} \ + -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/; }" + @${FIND} ${WRKDIR} -type f -name ltmain.sh | \ + ${XARGS} ${REINPLACE_CMD} \ + -e 's/|-p|-pg|/|-B*|-p|-pg|/' + .if ! ${libtool_ARGS:Moldver} @${FIND} ${WRKDIR} \( -name configure -or -name ltconfig \) \ -type f | ${XARGS} ${REINPLACE_CMD} \ |