summaryrefslogtreecommitdiff
path: root/gcc-bootstrap-pass1-2.morph
diff options
context:
space:
mode:
Diffstat (limited to 'gcc-bootstrap-pass1-2.morph')
-rw-r--r--gcc-bootstrap-pass1-2.morph6
1 files changed, 4 insertions, 2 deletions
diff --git a/gcc-bootstrap-pass1-2.morph b/gcc-bootstrap-pass1-2.morph
index 3cc3825007..f52ec3f1a4 100644
--- a/gcc-bootstrap-pass1-2.morph
+++ b/gcc-bootstrap-pass1-2.morph
@@ -5,14 +5,16 @@
"for file in $(find gcc/config -name linux64.h -o -name linux.h -o -name sysv4.h -o -name linux-eabi.h -o -name linux-elf.h); do sed -i -e \"s@/lib\\(64\\)\\?\\(32\\)\\?/ld@$PREFIX&@g\" -e \"s@/usr@$PREFIX@g\" \"$file\"; done",
"case $(uname -m) in x86_64) for file in $(find gcc/config -name t-linux64); do sed -i '/MULTILIB_OSDIRNAMES/d' \"$file\"; done;; esac",
"mkdir o",
- "cd o && CC=\"$TOOLCHAIN_TARGET-gcc -B$PREFIX/lib/\" AR=\"$TOOLCHAIN_TARGET-ar\" RANLIB=\"$TOOLCHAIN_TARGET-ranlib\" ../configure --prefix=\"$PREFIX\" --with-local-prefix=\"$PREFIX\" --enable-clocale=gnu --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-languages=c,c++ --disable-libstdcxx-pch --disable-multilib --disable-bootstrap --disable-libgomp --without-ppl --without-cloog --with-mpfr-include=$(pwd)/../mpfr/src --with-mpfr-lib=$(pwd)/mpfr/src/.libs"
+ "cd o && CC=\"$TOOLCHAIN_TARGET-gcc -B$PREFIX/lib/\" AR=\"$TOOLCHAIN_TARGET-ar\" RANLIB=\"$TOOLCHAIN_TARGET-ranlib\" ../configure --prefix=\"$PREFIX\" --with-local-prefix=\"$PREFIX\" --enable-clocale=gnu --disable-shared --enable-threads=posix --enable-__cxa_atexit --enable-languages=c,c++ --disable-libstdcxx-pch --disable-multilib --disable-bootstrap --disable-libgomp --without-ppl --without-cloog --with-mpfr-include=$(pwd)/../mpfr/src --with-mpfr-lib=$(pwd)/mpfr/src/.libs"
],
"build-commands": [
"cd o && make"
],
"install-commands": [
"cd o && make DESTDIR=\"$DESTDIR\" install",
- "ln -s gcc \"$DESTDIR/$PREFIX/bin/cc\""
+ "ln -s gcc \"$DESTDIR/$PREFIX/bin/cc\"",
+ "for f in `find \"$DESTDIR\" -name libgcc.a`; do EH=\"`echo \"$f\" | sed 's/libgcc/&_eh/'`\" && if [ ! -e \"$EH\" ]; then ln -s libgcc.a \"$EH\"; fi; done"
+
]
}