From: Gavin Andresen Date: Wed, 4 Apr 2012 19:45:31 +0000 (-0400) Subject: Add ifdef RELEASE to makefile.osx as the compile-for-older-macs flags X-Git-Tag: v0.4.0-unstable~129^2~107^2 X-Git-Url: https://git.novaco.in/?p=novacoin.git;a=commitdiff_plain;h=3a8ca61bd00f908ae86b496a8b466e8a8c4d015e Add ifdef RELEASE to makefile.osx as the compile-for-older-macs flags --- diff --git a/src/makefile.osx b/src/makefile.osx index 6388a71..0fcf800 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= \