diff options
| author | Gavin Andresen <[email protected]> | 2012-04-04 15:45:31 -0400 |
|---|---|---|
| committer | Gavin Andresen <[email protected]> | 2012-04-04 15:45:31 -0400 |
| commit | 3a8ca61bd00f908ae86b496a8b466e8a8c4d015e (patch) | |
| tree | 1a7a5df1fc93aff04c8df5c7258ad265984ccbbb /src/makefile.osx | |
| parent | Merge pull request #1019 from laanwj/2012_03_uirefactor (diff) | |
| download | discoin-3a8ca61bd00f908ae86b496a8b466e8a8c4d015e.tar.xz discoin-3a8ca61bd00f908ae86b496a8b466e8a8c4d015e.zip | |
Add ifdef RELEASE to makefile.osx as the compile-for-older-macs flags
Diffstat (limited to 'src/makefile.osx')
| -rw-r--r-- | src/makefile.osx | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/src/makefile.osx b/src/makefile.osx index 6388a71e1..0fcf800ee 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= \ |