diff options
author | Richard Maw <richard.maw@codethink.co.uk> | 2012-06-01 11:51:43 +0100 |
---|---|---|
committer | Richard Maw <richard.maw@codethink.co.uk> | 2012-06-01 11:51:43 +0100 |
commit | f4d0c8aa9198adcadbd4fc54c2b42682d9f8d8ec (patch) | |
tree | e0047e1ed8b6d611d20237b09b22be7e333e9bf7 | |
parent | edc3b8718df3ad12bc0186117f24b305c3a24bf5 (diff) | |
download | gcc-tarball-baserock/bootstrap.tar.gz |
gcc.morph: provide symlink for libgcc_ehbaserock/bootstrap
libgcc_eh is not installed if --disable-shared is passed.
Which is odd, since libgcc_eh is a static library.
Anyway, since the required symbols end up in libgcc.a, according to
http://www.linuxfromscratch.org/lfs/view/development/chapter05/gcc-pass1.html
it should be safe to have libgcc_eh.a be a symlink to libgcc.a
-rw-r--r-- | gcc.morph | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -12,6 +12,7 @@ "install-commands": [ "cd o && make DESTDIR=\"$DESTDIR\" install", "if readelf -l \"$DESTDIR\"/usr/bin/gcc | grep tools; then echo bad dynlinker; exit 1; fi", + "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", "ln -s gcc \"$DESTDIR/usr/bin/cc\"" ] } |