hooks/post-install/03-strip-and-debug-pkgs: only add versioned shlib to shlib-provides.
This really avoids adding unwanted private shared objects or others that are only meaningful at runtime and not for linking.
This commit is contained in:
parent
708d23ee81
commit
d60be31450
1 changed files with 1 additions and 1 deletions
|
@ -106,7 +106,7 @@ hook() {
|
||||||
fi
|
fi
|
||||||
echo " Stripped library: ${f#$PKGDESTDIR}"
|
echo " Stripped library: ${f#$PKGDESTDIR}"
|
||||||
_soname=$(${OBJDUMP} -p "$f"|grep SONAME|awk '{print $2}')
|
_soname=$(${OBJDUMP} -p "$f"|grep SONAME|awk '{print $2}')
|
||||||
if [ -n "${_soname}" ]; then
|
if [[ "${_soname}" ]] && [[ ${_soname} =~ .so.[0-9] ]]; then
|
||||||
echo "${_soname}" >> ${PKGDESTDIR}/.shlib-provides
|
echo "${_soname}" >> ${PKGDESTDIR}/.shlib-provides
|
||||||
fi
|
fi
|
||||||
attach_debug "$f"
|
attach_debug "$f"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue