aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGavin Andresen <gavinandresen@gmail.com>2012-04-05 07:33:00 -0700
committerGavin Andresen <gavinandresen@gmail.com>2012-04-05 07:33:00 -0700
commit78494ffecce34780864dedd2c5c59b42a17c6bc0 (patch)
treedfed7ca1c454baabec2363581c428cc75a09c3d9
parent4a8d0f3b108b8dc42d526779f9068f3e329429b0 (diff)
parent3a8ca61bd00f908ae86b496a8b466e8a8c4d015e (diff)
Merge pull request #1035 from gavinandresen/osxbuild
Add ifdef RELEASE to makefile.osx as the compile-for-older-macs flags
-rw-r--r--src/makefile.osx13
1 files changed, 10 insertions, 3 deletions
diff --git a/src/makefile.osx b/src/makefile.osx
index 6388a71e11..0fcf800ee6 100644
--- a/src/makefile.osx
+++ b/src/makefile.osx
@@ -51,10 +51,17 @@ endif
DEFS=-DMAC_OSX -DMSG_NOSIGNAL=0 -DUSE_SSL
-DEBUGFLAGS=-g
+ifdef RELEASE
+# Compile for maximum compatibility and smallest size.
+# This requires that dependencies are compiled
+# the same way.
+CFLAGS = -mmacosx-version-min=10.5 -arch i386 -O3
+else
+CFLAGS = -g
+endif
+
# ppc doesn't work because we don't support big-endian
-CFLAGS=-mmacosx-version-min=10.5 -arch i386 -O3 \
- -Wextra -Wno-sign-compare -Wno-char-subscripts -Wno-invalid-offsetof -Wformat-security \
+CFLAGS += -Wextra -Wno-sign-compare -Wno-char-subscripts -Wno-invalid-offsetof -Wformat-security \
$(DEBUGFLAGS) $(DEFS) $(INCLUDEPATHS)
OBJS= \