about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--default.bam6
1 files changed, 5 insertions, 1 deletions
diff --git a/default.bam b/default.bam
index e6f1ddc0..acafb108 100644
--- a/default.bam
+++ b/default.bam
@@ -204,7 +204,11 @@ function build(settings)
 	if family == "windows" then
 		settings.cc.flags = "/wd4244"
 	else
-		settings.cc.flags = "-Wall -fstack-protector -fstack-protector-all -fno-exceptions"
+		if platform == "macosx" then
+			settings.cc.flags = "-Wall -fno-exceptions"
+		else
+			settings.cc.flags = "-Wall -fstack-protector -fstack-protector-all -fno-exceptions"
+		end
 		settings.linker.flags = ""
 	end