diff options
author | Richard Maw <richard.maw@codethink.co.uk> | 2012-03-16 10:31:13 +0000 |
---|---|---|
committer | Richard Maw <richard.maw@codethink.co.uk> | 2012-03-16 10:31:13 +0000 |
commit | 7f4ed864c796bf4b64caff078d3a37816ae7bb97 (patch) | |
tree | c33749882ec8bb6d022feb4fee8689379351e494 | |
parent | 99f982beb13d14f9ecb120e9849f87897ed47d08 (diff) | |
download | gcc-tarball-baserock/bootstrap-pass1-1.tar.gz |
morph: only make gcc_eh symlink if not existbaserock/bootstrap-pass1-1
-rw-r--r-- | gcc-bootstrap-pass1-1.morph | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc-bootstrap-pass1-1.morph b/gcc-bootstrap-pass1-1.morph index ee7daf73f6..51d4944f33 100644 --- a/gcc-bootstrap-pass1-1.morph +++ b/gcc-bootstrap-pass1-1.morph @@ -10,7 +10,7 @@ ], "install-commands": [ "cd o && make DESTDIR=\"$DESTDIR\" install", - "for f in `find \"$DESTDIR\" -name libgcc.a`; do ln -s libgcc.a `echo \"$f\" | sed 's/libgcc/&_eh/'`; done" + "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" ] } |