diff options
author | Jannis Pohlmann <jannis.pohlmann@codethink.co.uk> | 2012-03-12 18:03:55 +0000 |
---|---|---|
committer | Jannis Pohlmann <jannis.pohlmann@codethink.co.uk> | 2012-03-15 13:46:45 +0000 |
commit | 190a2457ea1e9484017eb7a199dfb9c38536f0a3 (patch) | |
tree | 633172bcef58c5de8337b3df3bd8db96a487f3a4 /baserock-bootstrap | |
parent | 2156bd2db52a92ca2419a5001a5377eba3aeb8af (diff) | |
download | morph-190a2457ea1e9484017eb7a199dfb9c38536f0a3.tar.gz |
Only create the libgcc_eh.a link if the system doesn't have that file.
Diffstat (limited to 'baserock-bootstrap')
-rwxr-xr-x | baserock-bootstrap | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/baserock-bootstrap b/baserock-bootstrap index 5508fc59..7a3f9de2 100755 --- a/baserock-bootstrap +++ b/baserock-bootstrap @@ -141,8 +141,11 @@ pass1_gcc_1() --with-mpfr-lib=$(pwd)/mpfr/src/.libs make -j$JOBS make install - ln -s libgcc.a `$LFS_TGT-gcc -print-libgcc-file-name | \ + HOST_LIBGCC_EH=`$LFS_TGT-gcc -print-libgcc-file-name | \ $HOST_SED 's/libgcc/&_eh/'` + if ! test -e "$HOST_LIBGCC_EH"; then + ln -s libgcc.a "$HOST_LIBGCC_EH" + fi rm -rf "$sources/gcc-build" "$sources/gcc-4.6.1" fi |