From 3a1cfa50151f2a157b15774dd30a6f285cb4fa87 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Mon, 17 Nov 2008 10:43:12 +0000 Subject: Added BF_PROFILE_LINKFLAGS, Compiling with BF_PROFILE=1 was also throwing a python error. --- config/darwin-config.py | 1 + 1 file changed, 1 insertion(+) (limited to 'config/darwin-config.py') diff --git a/config/darwin-config.py b/config/darwin-config.py index 7c118b78861..ee0cd6e2a87 100644 --- a/config/darwin-config.py +++ b/config/darwin-config.py @@ -261,6 +261,7 @@ CC_WARN = ['-Wall', '-Wno-long-double'] ##DYNLDFLAGS = -shared $(LDFLAGS) BF_PROFILE_CCFLAGS = ['-pg', '-g '] +BF_PROFILE_LINKFLAGS = ['-pg'] BF_PROFILE = False BF_DEBUG = False -- cgit v1.2.3 From bbc00befe75ce223a91d1bbccab1e6e1c93da98c Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Tue, 18 Nov 2008 05:47:19 +0000 Subject: some scons command line args were not working since recent changes- scons CCFLAGS="-O0 -ggdp3" for example would pass on the args including the "'s to scons, causing the build to fail. --- config/darwin-config.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'config/darwin-config.py') diff --git a/config/darwin-config.py b/config/darwin-config.py index ee0cd6e2a87..3ef7b7132d9 100644 --- a/config/darwin-config.py +++ b/config/darwin-config.py @@ -216,14 +216,14 @@ CXXFLAGS = [ '-pipe','-fPIC','-funsigned-char', '-fpascal-strings'] PLATFORM_LINKFLAGS = '-fexceptions -framework CoreServices -framework Foundation -framework IOKit -framework AppKit -framework Carbon -framework AGL -framework AudioUnit -framework AudioToolbox -framework CoreAudio -framework QuickTime' #note to build succesfully on 10.3.9 SDK you need to patch 10.3.9 by adding the SystemStubs.a lib from 10.4 -LLIBS = 'stdc++ SystemStubs' +LLIBS = ['stdc++', 'SystemStubs'] # some flags shuffling for different Os versions if MAC_MIN_VERS == '10.3': CFLAGS = ['-fuse-cxa-atexit']+CFLAGS CXXFLAGS = ['-fuse-cxa-atexit']+CXXFLAGS PLATFORM_LINKFLAGS = '-fuse-cxa-atexit '+PLATFORM_LINKFLAGS - LLIBS = LLIBS + ' crt3.o' + LLIBS.append('crt3.o') if USE_SDK==True: SDK_FLAGS=['-isysroot', MACOSX_SDK,'-mmacosx-version-min='+MAC_MIN_VERS] -- cgit v1.2.3