diff options
author | Tijl Coosemans <tijl@FreeBSD.org> | 2014-09-08 12:21:50 +0000 |
---|---|---|
committer | Tijl Coosemans <tijl@FreeBSD.org> | 2014-09-08 12:21:50 +0000 |
commit | 195a414c737076b0500eb5d957182c4f800fb162 (patch) | |
tree | 803a4932e602b5f2150c88cf45073277957eb07c /Mk/Uses/libtool.mk | |
parent | - Fix build when PREFIX != PKG_PREFIX (diff) |
Let USES=libtool also delete links to .la files (and links to links to...)
Approved by: portmgr (antoine)
Notes
Notes:
svn path=/head/; revision=367620
Diffstat (limited to 'Mk/Uses/libtool.mk')
-rw-r--r-- | Mk/Uses/libtool.mk | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Mk/Uses/libtool.mk b/Mk/Uses/libtool.mk index 40eac476b5f0..cb5fdbf8faa4 100644 --- a/Mk/Uses/libtool.mk +++ b/Mk/Uses/libtool.mk @@ -76,6 +76,10 @@ patch-lafiles: @${FIND} ${STAGEDIR} -type f -name '*.la' | \ ${XARGS} ${SED} -i '' -e "/dependency_libs=/s/=.*/=''/" .else + @${FIND} ${STAGEDIR} -type l -exec ${SH} -c \ + 'case `${READLINK_CMD} -f "{}"` in \ + *.la) ${ECHO_CMD} "{}" ;; esac' \; | \ + ${XARGS} ${GREP} -l 'libtool library' | ${XARGS} ${RM} @${FIND} ${STAGEDIR} -type f -name '*.la' | \ ${XARGS} ${GREP} -l 'libtool library' | ${XARGS} ${RM} .endif |