Merge pull request #1035 from gavinandresen/osxbuild
Add ifdef RELEASE to makefile.osx as the compile-for-older-macs flags
This commit is contained in:
commit
78494ffecc
1 changed files with 10 additions and 3 deletions
|
@ -51,10 +51,17 @@ endif
|
||||||
|
|
||||||
DEFS=-DMAC_OSX -DMSG_NOSIGNAL=0 -DUSE_SSL
|
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
|
# ppc doesn't work because we don't support big-endian
|
||||||
CFLAGS=-mmacosx-version-min=10.5 -arch i386 -O3 \
|
CFLAGS += -Wextra -Wno-sign-compare -Wno-char-subscripts -Wno-invalid-offsetof -Wformat-security \
|
||||||
-Wextra -Wno-sign-compare -Wno-char-subscripts -Wno-invalid-offsetof -Wformat-security \
|
|
||||||
$(DEBUGFLAGS) $(DEFS) $(INCLUDEPATHS)
|
$(DEBUGFLAGS) $(DEFS) $(INCLUDEPATHS)
|
||||||
|
|
||||||
OBJS= \
|
OBJS= \
|
||||||
|
|
Loading…
Reference in a new issue