diff options
author | Tijl Coosemans <tijl@FreeBSD.org> | 2014-02-09 22:00:35 +0000 |
---|---|---|
committer | Tijl Coosemans <tijl@FreeBSD.org> | 2014-02-09 22:00:35 +0000 |
commit | d373eb175ceb3c7dac0a7df975067a5e6dea9691 (patch) | |
tree | 7fbadf212a3b51dbbaa2f9ed1d93d58ceed94b58 /Mk/Uses/libtool.mk | |
parent | 34ca3b60150f48ed64fcca416c775e4abef976ac (diff) | |
download | ports-d373eb175ceb3c7dac0a7df975067a5e6dea9691.tar.gz ports-d373eb175ceb3c7dac0a7df975067a5e6dea9691.zip |
- Support libtool 1.3 which has an ltconfig script.
- Support -shrext command line option. (Used in audio/pd.)
Notes
Notes:
svn path=/head/; revision=343547
Diffstat (limited to 'Mk/Uses/libtool.mk')
-rw-r--r-- | Mk/Uses/libtool.mk | 22 |
1 files changed, 14 insertions, 8 deletions
diff --git a/Mk/Uses/libtool.mk b/Mk/Uses/libtool.mk index 09c5576bdc0e..cc215cca48ec 100644 --- a/Mk/Uses/libtool.mk +++ b/Mk/Uses/libtool.mk @@ -17,18 +17,24 @@ libtool_ARGS?= _INCLUDE_USES_LIBTOOL_POST_MK= yes patch-libtool: - @${FIND} ${WRKDIR} -type f -name configure | \ - ${XARGS} ${REINPLACE_CMD} \ + @${FIND} ${WRKDIR} \( -name configure -or -name ltconfig \) \ + -type f | ${XARGS} ${REINPLACE_CMD} \ -e '/link_all_deplibs=/s/=unknown/=no/' \ -e '/objformat=/s/echo aout/echo elf/' .if ! ${libtool_ARGS:Moldver} - @${FIND} ${WRKDIR} -type f -name configure | \ - ${XARGS} ${REINPLACE_CMD} \ - -e "/freebsd-elf\*)/,+1 s/library_names_spec=.*/ \ - library_names_spec='\$$libname\$$release.so\$$versuffix \ - \$$libname\$$release.so\$$major \$$libname.so' \ - soname_spec='\$$libname\$$release.so\$$major'/" + @${FIND} ${WRKDIR} \( -name configure -or -name ltconfig \) \ + -type f | ${XARGS} ${REINPLACE_CMD} \ + -e "/freebsd-elf\\*)/,/;;/ { \ + /library_names_spec=.*\\.so/ \ + s/=.*/='\$$libname\$$release.so\$$versuffix \ + \$$libname\$$release.so\$$major \$$libname.so' \ + soname_spec='\$$libname\$$release.so\$$major'/; \ + /library_names_spec=.*shared_ext/ \ + s/=.*/='\$$libname\$$release\$$shared_ext\$$versuffix \ + \$$libname\$$release\$$shared_ext\$$major \ + \$$libname\$$shared_ext' \ + soname_spec='\$$libname\$$release\$$shared_ext\$$major'/; }" @${FIND} ${WRKDIR} -type f -name ltmain.sh | \ ${XARGS} ${REINPLACE_CMD} \ |