Changeset 9676bac for scripts/patch/gcc-specs-patch.sh
- Timestamp:
- Jan 20, 2009, 4:01:19 PM (15 years ago)
- Branches:
- clfs-1.2, clfs-2.1, clfs-3.0.0-systemd, clfs-3.0.0-sysvinit, master, systemd, sysvinit
- Children:
- 550b73d
- Parents:
- d8b9d99
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
scripts/patch/gcc-specs-patch.sh
rd8b9d99 r9676bac 9 9 # 10 10 if [ "${VERSION}" = "" ]; then 11 echo "$0 - GCC_Version" 12 echo "This will Create a Patch for GCC Specs GCC_Version" 11 echo "$0 - GCC_Version" 12 echo "This will Create a Patch for GCC Specs GCC_Version" 13 exit 255 13 14 fi 14 15 … … 17 18 cd /usr/src 18 19 if ! [ -e gcc-${VERSION}.tar.bz2 ]; then 19 20 wget ftp://ftp.gnu.org/gnu/gcc/gcc-${VERSION}/gcc-${VERSION}.tar.bz2 20 21 fi 21 22 … … 31 32 cd /usr/src/gcc-${VERSION} 32 33 for file in $(find gcc/config -name "*.h"); do 33 34 35 36 37 38 39 40 41 42 34 if [ "$(echo ${file} | grep -c bsd)" = "0" ]; then 35 if [ "$(cat ${file} | grep -c DYNAMIC_LINKER)" != "0" ]; then 36 echo "Modifying ${file}..." 37 sed -i '/DYNAMIC_LINKER/s@"/lib@"/tools/lib@' ${file} 38 fi 39 if [ "$(cat ${file} | grep -c DYNAMIC_LINKER)" != "0" ]; then 40 echo "Modifying ${file}..." 41 sed -i '/-dynamic-linker/s@ /lib@ /tools/lib@' ${file} 42 fi 43 fi 43 44 done 44 45
Note: See TracChangeset
for help on using the changeset viewer.