From cb3da20d48d0294820eaecd1c140ced420b72fd0 Mon Sep 17 00:00:00 2001 From: Charlie Fenton Date: Fri, 28 Mar 2008 11:19:44 +0000 Subject: [PATCH] example_app: Fixes to Mac build script svn path=/trunk/boinc_samples/; revision=14976 --- checkin_notes | 2 +- example_app/MakeMacExample.sh | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/checkin_notes b/checkin_notes index c02edbe284..bf4d74eca0 100644 --- a/checkin_notes +++ b/checkin_notes @@ -648,7 +648,7 @@ David 27 Mar 2008 multi_thread/ multi_thread.C -Charlie 27 Mar 2008 +Charlie 28 Mar 2008 - example_app: Fixes to Mac build script. example_app/ diff --git a/example_app/MakeMacExample.sh b/example_app/MakeMacExample.sh index 5c29529da3..50550fafa5 100644 --- a/example_app/MakeMacExample.sh +++ b/example_app/MakeMacExample.sh @@ -22,7 +22,7 @@ # # Script to build Macintosh example_app using Makefile # -# by Charlie Fenton 3/26/08 +# by Charlie Fenton 3/28/08 # ## In Terminal, CD to the example_app/Mac directory. ## cd [path]/example_app/Mac/ @@ -59,7 +59,7 @@ export CC=/usr/bin/gcc-3.3;export CXX=/usr/bin/g++-3.3 export LDFLAGS="-Wl,-syslibroot,/Developer/SDKs/MacOSX10.3.9.sdk -arch ppc" ## If your make file passes LDFLAGS directly to ld instead of to gcc, use the following instead: ## export LDFLAGS="-syslibroot /Developer/SDKs/MacOSX10.3.9.sdk -arch ppc" -export VARIANTFLAGS="-arch ppc -D_NONSTD_SOURCE -isystem /Developer/SDKs/MacOSX10.3.9.sd" +export VARIANTFLAGS="-arch ppc -D_NONSTD_SOURCE -isystem /Developer/SDKs/MacOSX10.3.9.sdk" make -f Makefile_mac clean make -f Makefile_mac all @@ -83,8 +83,7 @@ export CC=/usr/bin/gcc-4.0;export CXX=/usr/bin/g++-4.0 export LDFLAGS="-Wl,-syslibroot,/Developer/SDKs/MacOSX10.4u.sdk -arch i386" ## If your make file passes LDFLAGS directly to ld instead of to gcc, use the following instead: ## export LDFLAGS="-syslibroot /Developer/SDKs/MacOSX10.3.9.sdk -arch i386" -export VARIANTFLAGS="-isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch i386" -export CFLAGS="-isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch i386" +export VARIANTFLAGS="-isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch i386 -fvisibility=hidden -fvisibility-inlines-hidden" make -f Makefile_mac clean make -f Makefile_mac all @@ -112,7 +111,6 @@ if [ -d /Developer/SDKs/MacOSX10.5.sdk/ ]; then ## If your make file passes LDFLAGS directly to ld instead of to gcc, use the following instead: ## export LDFLAGS="-syslibroot /Developer/SDKs/MacOSX10.3.9.sdk -arch x86_64" export VARIANTFLAGS="-isysroot /Developer/SDKs/MacOSX10.5.sdk -arch x86_64 -fvisibility=hidden -fvisibility-inlines-hidden" - export CFLAGS="-isysroot /Developer/SDKs/MacOSX10.5.sdk -arch x86_64" make -f Makefile_mac clean make -f Makefile_mac all