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:
@@ -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"
|
||||||
|
|||||||
Reference in New Issue
Block a user