aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'binutils-config')
-rw-r--r--binutils-config10
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