Mercurial > hg > aboriginal
diff mini-native.sh @ 390:a9a9eee9e620
Teach the wrapper script to do the libgcc_s --as-needed stuff when
appropriate, and to use an arch-specific name for the unwrapped version so
you can have more than one cross compiler in the $PATH.
author | Rob Landley <rob@landley.net> |
---|---|
date | Sun, 24 Aug 2008 19:29:20 -0500 |
parents | becb1084a427 |
children | c2b290c1df40 |
line wrap: on
line diff
--- a/mini-native.sh Fri Aug 15 14:29:14 2008 -0500 +++ b/mini-native.sh Sun Aug 24 19:29:20 2008 -0500 @@ -140,8 +140,9 @@ mkdir -p "${TOOLS}"/gcc && mv "${TOOLS}"/lib/gcc/*/*/include "${TOOLS}"/gcc/include && mv "${TOOLS}"/lib/gcc/*/* "${TOOLS}"/gcc/lib && -mv "${TOOLS}/bin/gcc" "${TOOLS}/bin/gcc-unwrapped" && -"${ARCH}-gcc" "${SOURCES}"/toys/gcc-uClibc.c -Os -s -o "${TOOLS}/bin/gcc" +mv "${TOOLS}/bin/gcc" "${TOOLS}/bin/rawgcc" && +"${ARCH}-gcc" "${SOURCES}"/toys/gcc-uClibc.c -Os -s -o "${TOOLS}/bin/gcc" \ + -DGCC_UNWRAPPED_NAME='"rawgcc"' -DGIMME_AN_S cleanup "${TOOLS}"/{lib/gcc,gcc/lib/install-tools}