- Support libtool 1.3 which has an ltconfig script.

- Support -shrext command line option.  (Used in audio/pd.)
This commit is contained in:
Tijl Coosemans 2014-02-09 22:00:35 +00:00
parent 34ca3b6015
commit d373eb175c
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=343547

View file

@ -17,18 +17,24 @@ libtool_ARGS?=
_INCLUDE_USES_LIBTOOL_POST_MK= yes _INCLUDE_USES_LIBTOOL_POST_MK= yes
patch-libtool: patch-libtool:
@${FIND} ${WRKDIR} -type f -name configure | \ @${FIND} ${WRKDIR} \( -name configure -or -name ltconfig \) \
${XARGS} ${REINPLACE_CMD} \ -type f | ${XARGS} ${REINPLACE_CMD} \
-e '/link_all_deplibs=/s/=unknown/=no/' \ -e '/link_all_deplibs=/s/=unknown/=no/' \
-e '/objformat=/s/echo aout/echo elf/' -e '/objformat=/s/echo aout/echo elf/'
.if ! ${libtool_ARGS:Moldver} .if ! ${libtool_ARGS:Moldver}
@${FIND} ${WRKDIR} -type f -name configure | \ @${FIND} ${WRKDIR} \( -name configure -or -name ltconfig \) \
${XARGS} ${REINPLACE_CMD} \ -type f | ${XARGS} ${REINPLACE_CMD} \
-e "/freebsd-elf\*)/,+1 s/library_names_spec=.*/ \ -e "/freebsd-elf\\*)/,/;;/ { \
library_names_spec='\$$libname\$$release.so\$$versuffix \ /library_names_spec=.*\\.so/ \
\$$libname\$$release.so\$$major \$$libname.so' \ s/=.*/='\$$libname\$$release.so\$$versuffix \
soname_spec='\$$libname\$$release.so\$$major'/" \$$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 | \ @${FIND} ${WRKDIR} -type f -name ltmain.sh | \
${XARGS} ${REINPLACE_CMD} \ ${XARGS} ${REINPLACE_CMD} \