example_app: Remove -fvisibility* compiler flags from all 3 Mac build methods

svn path=/trunk/boinc_samples/; revision=14999
This commit is contained in:
Charlie Fenton 2008-04-02 00:23:30 +00:00
parent 5f015a005f
commit ae7601a412
4 changed files with 40 additions and 12 deletions

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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/**";