From ae7601a412cf0fc5cf1aa75ba9e102491b34d0db Mon Sep 17 00:00:00 2001 From: Charlie Fenton Date: Wed, 2 Apr 2008 00:23:30 +0000 Subject: [PATCH] example_app: Remove -fvisibility* compiler flags from all 3 Mac build methods svn path=/trunk/boinc_samples/; revision=14999 --- checkin_notes | 12 ++++++++ example_app/MakeMacExample.sh | 6 ++-- example_app/Makefile_mac2 | 6 ++-- .../UpperCase2.xcodeproj/project.pbxproj | 28 +++++++++++++++---- 4 files changed, 40 insertions(+), 12 deletions(-) diff --git a/checkin_notes b/checkin_notes index 5881d17432..121bde21f3 100644 --- a/checkin_notes +++ b/checkin_notes @@ -671,3 +671,15 @@ David 31 Mar 2008 example_app/ uc2_graphics.C + + +Charlie 1 Apr 2008 + - example_app: Remove -fvisibility* compiler flags from all 3 Mac build + methods. + + example_app/ + Makefile_mac2 + MakeMacExample.sh + mac_build/ + UpperCase2.xcodeproj/ + project.pbxproj diff --git a/example_app/MakeMacExample.sh b/example_app/MakeMacExample.sh index 50550fafa5..af36981cea 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/28/08 +# by Charlie Fenton 4/1/08 # ## In Terminal, CD to the example_app/Mac directory. ## cd [path]/example_app/Mac/ @@ -83,7 +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 -fvisibility=hidden -fvisibility-inlines-hidden" +export VARIANTFLAGS="-isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch i386" make -f Makefile_mac clean make -f Makefile_mac all @@ -110,7 +110,7 @@ if [ -d /Developer/SDKs/MacOSX10.5.sdk/ ]; then export LDFLAGS="-Wl,-syslibroot,/Developer/SDKs/MacOSX10.5.sdk -arch x86_64" ## 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 VARIANTFLAGS="-isysroot /Developer/SDKs/MacOSX10.5.sdk -arch x86_64" make -f Makefile_mac clean make -f Makefile_mac all diff --git a/example_app/Makefile_mac2 b/example_app/Makefile_mac2 index 69bcba8955..53b7420ebd 100644 --- a/example_app/Makefile_mac2 +++ b/example_app/Makefile_mac2 @@ -1,5 +1,5 @@ # stand-alone makefile for uc2 BOINC example application on Macintosh. -# Updated 3/26/08 +# Updated 4/1/08 # BOINC_DIR = ../../boinc @@ -27,14 +27,14 @@ LDFLAGS_PPC = -Wl,-syslibroot,/Developer/SDKs/MacOSX10.3.9.sdk,-arch,ppc CC_i386 = /usr/bin/gcc-4.0 CXX_i386 = /usr/bin/g++-4.0 CXXFLAGS_i386 = -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk \ - -mmacosx-version-min=10.4 -fvisibility=hidden -fvisibility-inlines-hidden \ + -mmacosx-version-min=10.4 \ $(CXXFLAGS_ALL) LDFLAGS_i386 = -Wl,-syslibroot,/Developer/SDKs/MacOSX10.4u.sdk,-arch,i386 CC_x86_64 = /usr/bin/gcc-4.0 CXX_x86_64 = /usr/bin/g++-4.0 CXXFLAGS_x86_64 = -arch x86_64 -isysroot /Developer/SDKs/MacOSX10.5.sdk \ - -mmacosx-version-min=10.5 -fvisibility=hidden -fvisibility-inlines-hidden \ + -mmacosx-version-min=10.5 \ $(CXXFLAGS_ALL) LDFLAGS_x86_64 = -Wl,-syslibroot,/Developer/SDKs/MacOSX10.5.sdk,-arch,x86_64 diff --git a/mac_build/UpperCase2.xcodeproj/project.pbxproj b/mac_build/UpperCase2.xcodeproj/project.pbxproj index 54ff0b545c..80750ae39d 100644 --- a/mac_build/UpperCase2.xcodeproj/project.pbxproj +++ b/mac_build/UpperCase2.xcodeproj/project.pbxproj @@ -89,7 +89,7 @@ /* Begin PBXBuildRule section */ DD760E3C094E540C002CACC4 /* PBXBuildRule */ = { isa = PBXBuildRule; - compilerSpec = com.apple.compilers.gcc.3_3; + compilerSpec = com.apple.compilers.gcc.4_0; fileType = sourcecode.asm; isEditable = 1; outputFiles = ( @@ -97,7 +97,7 @@ }; DD760E3D094E540D002CACC4 /* PBXBuildRule */ = { isa = PBXBuildRule; - compilerSpec = com.apple.compilers.gcc.3_3; + compilerSpec = com.apple.compilers.gcc.4_0; fileType = sourcecode.cpp; isEditable = 1; outputFiles = ( @@ -105,7 +105,7 @@ }; DD760E3E094E540D002CACC4 /* PBXBuildRule */ = { isa = PBXBuildRule; - compilerSpec = com.apple.compilers.gcc.3_3; + compilerSpec = com.apple.compilers.gcc.4_0; fileType = sourcecode.c; isEditable = 1; outputFiles = ( @@ -113,7 +113,7 @@ }; DD84C6E30C856B36000EBEC4 /* PBXBuildRule */ = { isa = PBXBuildRule; - compilerSpec = com.apple.compilers.gcc.3_3; + compilerSpec = com.apple.compilers.gcc.4_0; fileType = sourcecode.c; isEditable = 1; outputFiles = ( @@ -121,7 +121,7 @@ }; DD84C6E40C856B36000EBEC4 /* PBXBuildRule */ = { isa = PBXBuildRule; - compilerSpec = com.apple.compilers.gcc.3_3; + compilerSpec = com.apple.compilers.gcc.4_0; fileType = sourcecode.cpp; isEditable = 1; outputFiles = ( @@ -129,7 +129,7 @@ }; DD84C6E50C856B36000EBEC4 /* PBXBuildRule */ = { isa = PBXBuildRule; - compilerSpec = com.apple.compilers.gcc.3_3; + compilerSpec = com.apple.compilers.gcc.4_0; fileType = sourcecode.asm; isEditable = 1; outputFiles = ( @@ -582,7 +582,9 @@ COPY_PHASE_STRIP = YES; GCC_ENABLE_FIX_AND_CONTINUE = NO; GCC_GENERATE_DEBUGGING_SYMBOLS = NO; + GCC_INLINES_ARE_PRIVATE_EXTERN = NO; GCC_MODEL_TUNING = G5; + GCC_SYMBOLS_PRIVATE_EXTERN = NO; GCC_WARN_ABOUT_RETURN_TYPE = YES; GCC_WARN_UNUSED_VARIABLE = YES; HEADER_SEARCH_PATHS = "../../boinc/**"; @@ -611,7 +613,9 @@ COPY_PHASE_STRIP = YES; GCC_ENABLE_FIX_AND_CONTINUE = NO; GCC_GENERATE_DEBUGGING_SYMBOLS = NO; + GCC_INLINES_ARE_PRIVATE_EXTERN = NO; GCC_MODEL_TUNING = G5; + GCC_SYMBOLS_PRIVATE_EXTERN = NO; GCC_WARN_ABOUT_RETURN_TYPE = YES; GCC_WARN_UNUSED_VARIABLE = YES; HEADER_SEARCH_PATHS = "../../boinc/**"; @@ -640,8 +644,10 @@ GCC_DYNAMIC_NO_PIC = NO; GCC_ENABLE_FIX_AND_CONTINUE = NO; GCC_GENERATE_DEBUGGING_SYMBOLS = YES; + GCC_INLINES_ARE_PRIVATE_EXTERN = NO; GCC_MODEL_TUNING = G5; GCC_OPTIMIZATION_LEVEL = 0; + GCC_SYMBOLS_PRIVATE_EXTERN = NO; GCC_WARN_ABOUT_RETURN_TYPE = YES; GCC_WARN_UNUSED_VARIABLE = YES; HEADER_SEARCH_PATHS = "../../boinc/**"; @@ -670,7 +676,9 @@ COPY_PHASE_STRIP = YES; GCC_ENABLE_FIX_AND_CONTINUE = NO; GCC_GENERATE_DEBUGGING_SYMBOLS = NO; + GCC_INLINES_ARE_PRIVATE_EXTERN = NO; GCC_MODEL_TUNING = G5; + GCC_SYMBOLS_PRIVATE_EXTERN = NO; GCC_WARN_ABOUT_RETURN_TYPE = YES; GCC_WARN_UNUSED_VARIABLE = YES; HEADER_SEARCH_PATHS = "../../boinc/**"; @@ -727,7 +735,9 @@ COPY_PHASE_STRIP = YES; GCC_ENABLE_FIX_AND_CONTINUE = NO; GCC_GENERATE_DEBUGGING_SYMBOLS = NO; + GCC_INLINES_ARE_PRIVATE_EXTERN = NO; GCC_MODEL_TUNING = G5; + GCC_SYMBOLS_PRIVATE_EXTERN = NO; GCC_WARN_ABOUT_RETURN_TYPE = YES; GCC_WARN_UNUSED_VARIABLE = YES; HEADER_SEARCH_PATHS = "../../boinc/**"; @@ -771,8 +781,10 @@ GCC_DYNAMIC_NO_PIC = NO; GCC_ENABLE_FIX_AND_CONTINUE = NO; GCC_GENERATE_DEBUGGING_SYMBOLS = YES; + GCC_INLINES_ARE_PRIVATE_EXTERN = NO; GCC_MODEL_TUNING = G5; GCC_OPTIMIZATION_LEVEL = 0; + GCC_SYMBOLS_PRIVATE_EXTERN = NO; GCC_WARN_ABOUT_RETURN_TYPE = YES; GCC_WARN_UNUSED_VARIABLE = YES; HEADER_SEARCH_PATHS = "../../boinc/**"; @@ -801,7 +813,9 @@ COPY_PHASE_STRIP = YES; GCC_ENABLE_FIX_AND_CONTINUE = NO; GCC_GENERATE_DEBUGGING_SYMBOLS = NO; + GCC_INLINES_ARE_PRIVATE_EXTERN = NO; GCC_MODEL_TUNING = G5; + GCC_SYMBOLS_PRIVATE_EXTERN = NO; GCC_WARN_ABOUT_RETURN_TYPE = YES; GCC_WARN_UNUSED_VARIABLE = YES; HEADER_SEARCH_PATHS = "../../boinc/**"; @@ -829,7 +843,9 @@ COPY_PHASE_STRIP = YES; GCC_ENABLE_FIX_AND_CONTINUE = NO; GCC_GENERATE_DEBUGGING_SYMBOLS = NO; + GCC_INLINES_ARE_PRIVATE_EXTERN = NO; GCC_MODEL_TUNING = G5; + GCC_SYMBOLS_PRIVATE_EXTERN = NO; GCC_WARN_ABOUT_RETURN_TYPE = YES; GCC_WARN_UNUSED_VARIABLE = YES; HEADER_SEARCH_PATHS = "../../boinc/**";