diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2015-02-11 16:19:32 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2015-02-11 16:19:32 +0200 |
commit | be44ee078fa5d5470dddd097db0d97fadfc754ff (patch) | |
tree | f24dd05a88dbe2330837bc29f762ce648fd1b162 /binary/darwin/build-gcc | |
parent | ec47ef43536bd698f1f1176b5fec3803e149c2ac (diff) |
Update Mac OS X binary build
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-* |