Skip to content
This repository has been archived by the owner on Sep 29, 2022. It is now read-only.

Commit

Permalink
gcc-4.8: After build, remove "fixed" headers.
Browse files Browse the repository at this point in the history
  • Loading branch information
stuarteberg committed Apr 29, 2015
1 parent cf23d0c commit 718d65f
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions gcc-4.8/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,13 @@ fi
make
make install
rm $PREFIX/lib64

# Lastly, remove the headers that gcc "fixed".
# They kill the gcc binary's portability to other systems,
# and shouldn't be necessary on ANSI-compliant systems anyway.
# More discussion can be found here:
# https://groups.google.com/a/continuum.io/d/msg/conda/HwUazgD-hJ0/aofO0vD-MhcJ
while read x ; do
grep -q 'It has been auto-edited by fixincludes from' "${x}" \
&& rm -f "${x}"
done < <(find ${PREFIX}/lib/gcc/*/*/include*/ -name '*.h')

0 comments on commit 718d65f

Please sign in to comment.