about summary refs log tree commit diff
path: root/default.bam
diff options
context:
space:
mode:
authorJoel de Vahl <joel@stalverk80.se>2008-10-20 16:18:02 +0000
committerJoel de Vahl <joel@stalverk80.se>2008-10-20 16:18:02 +0000
commit2b9688f3c3085e4fb07906a71bbedb8a6b916a59 (patch)
tree53ac72bb1e6679d83de8f3597ba51484a1464c44 /default.bam
parent0b4c01ff0a8463575a65de9f72fe5dc2faf478ac (diff)
downloadzcatch-2b9688f3c3085e4fb07906a71bbedb8a6b916a59.tar.gz
zcatch-2b9688f3c3085e4fb07906a71bbedb8a6b916a59.zip
Build for OS 10.4 instead of latest
Diffstat (limited to 'default.bam')
-rw-r--r--default.bam15
1 files changed, 10 insertions, 5 deletions
diff --git a/default.bam b/default.bam
index 6c020f84..2e9692b1 100644
--- a/default.bam
+++ b/default.bam
@@ -128,12 +128,16 @@ function build(settings)
 
 	if config.compiler.value == "cl" then
 		settings.cc.flags = "/wd4244"
+		settings.linker.flags = ""
 	else
 		settings.cc.flags = "-Wall -fno-exceptions "
-		if config.stackprotector.value == 1 then
-			settings.cc.flags = settings.cc.flags .. "-fstack-protector -fstack-protector-all"
-		end
 		settings.linker.flags = ""
+		if platform == "macosx" then
+			settings.cc.flags = settings.cc.flags .. " -mmacosx-version-min=10.4 -isysroot /Developer/SDKs/MacOSX10.4u.sdk"
+			settings.linker.flags = settings.linker.flags .. " -mmacosx-version-min=10.4 -isysroot /Developer/SDKs/MacOSX10.4u.sdk"
+		elseif config.stackprotector.value == 1 then
+			settings.cc.flags = settings.cc.flags .. " -fstack-protector -fstack-protector-all"
+		end
 	end
 
 	-- set some platform specific settings
@@ -253,11 +257,12 @@ function build(settings)
 		engine_settings.cc.flags = "/wd4244"
 	else
    		if platform == "macosx"  or family == "windows" then
-			engine_settings.cc.flags = "-Wall"
+			engine_settings.cc.flags = "-Wall -mmacosx-version-min=10.4 -isysroot /Developer/SDKs/MacOSX10.4u.sdk"
+			engine_settings.linker.flags = "-mmacosx-version-min=10.4 -isysroot /Developer/SDKs/MacOSX10.4u.sdk"
 		else
 			engine_settings.cc.flags = "-Wall -pedantic-errors"
+			engine_settings.linker.flags = ""
 		end
-		engine_settings.linker.flags = ""
 	end
 
 	-- server