diff options
Diffstat (limited to 'binary/darwin/build-gcc')
-rwxr-xr-x | binary/darwin/build-gcc | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/binary/darwin/build-gcc b/binary/darwin/build-gcc index 93ffb41..874ad9d 100755 --- a/binary/darwin/build-gcc +++ b/binary/darwin/build-gcc @@ -12,7 +12,7 @@ function error () echo "$*" 1>&2 } -arch=i686-apple-darwin8 +arch=i686-apple-darwin10 rebuild=n while [ $# -gt 0 ]; do @@ -37,10 +37,6 @@ out_root=`pwd` mkdir -p gcc-build -# Need gcc-4.2. -# -export PATH=/usr/local/bin:$PATH - # Clean everything up if we are rebuilding. # if [ $rebuild = y ]; then @@ -62,4 +58,13 @@ make -C $arch/libstdc++-v3 install-strip cd .. -#cp ../gcc/gcc/config/darwin-sections.def /$arch/lib/gcc/$arch/4.5.1/plugin/include/ +# Make a fat binary for libstdc++ (libgcc_s already seems to be fat). +# +cd /$arch/lib +mkdir -p i386 +mv libstdc++.6.dylib i386/ +lipo -create i386/libstdc++.6.dylib x86_64/libstdc++.6.dylib -output libstdc++.6.dylib + +# Clean it up a bit. +# +rm -f /$arch/bin/$arch-* |