diff options
author | 2017-12-16 19:24:07 +0100 | |
---|---|---|
committer | 2017-12-16 19:24:07 +0100 | |
commit | 15606a1b5c4603179bfb7e686fa1bb82dc03833a (patch) | |
tree | e53567821e5ad4c35fce62f9cfb19ca756159777 | |
parent | Create README.md (diff) | |
download | binutils-config-15606a1b5c4603179bfb7e686fa1bb82dc03833a.tar.gz binutils-config-15606a1b5c4603179bfb7e686fa1bb82dc03833a.tar.bz2 binutils-config-15606a1b5c4603179bfb7e686fa1bb82dc03833a.zip |
Do not remove any header symlinks, since this removes also a valid symlink installed by binutils-libs, bug 584296
binutils-libs is stable since Sat Apr 2 20:55:45 2016, thus it's unlikely someone
still needs to convert to the split packages
-rw-r--r-- | binutils-config | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/binutils-config b/binutils-config index e6c5fac..945295c 100644 --- a/binutils-config +++ b/binutils-config @@ -167,15 +167,7 @@ switch_profile() { INCPATH=${LIBPATH}/include if [[ -d ${ROOT}/${INCPATH} ]] ; then cd "${ROOT}/${INCPATH}" || exit 1 - if [[ ${HOST} == ${TARGET} ]] ; then - # The binutils-lib package handles these files now. - for x in libiberty "${HEADERS[@]}" ; do - x="${EROOT}/usr/include/${x}" - if [[ -L ${x} ]] ; then - rm "${x}" - fi - done - else + if [[ ${HOST} != ${TARGET} ]] ; then # Clean out old path -- cannot use '-exec {} +' syntax here find . -type f -exec rm -f "${EROOT}/usr/${TARGET}/usr/include/{}" \; rmdir "${EROOT}/usr/${TARGET}/usr/include" >& /dev/null |