summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Maw <richard.maw@codethink.co.uk>2012-06-01 11:51:43 +0100
committerRichard Maw <richard.maw@codethink.co.uk>2012-06-01 11:51:43 +0100
commitf4d0c8aa9198adcadbd4fc54c2b42682d9f8d8ec (patch)
treee0047e1ed8b6d611d20237b09b22be7e333e9bf7
parentedc3b8718df3ad12bc0186117f24b305c3a24bf5 (diff)
downloadgcc-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.morph1
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc.morph b/gcc.morph
index ad29487a35..878777fe78 100644
--- a/gcc.morph
+++ b/gcc.morph
@@ -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\""
]
}