Skip to content

Commit

Permalink
Added -mdynamic-no-pic to Mac builds, since it's a small speed/size
Browse files Browse the repository at this point in the history
 improvement that's safe on bins that aren't shared libraries.
  • Loading branch information
icculus committed Apr 22, 2005
1 parent c038a2c commit 7e79de7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Makefile
Expand Up @@ -38,6 +38,10 @@ endif
#CFLAGS := $(PLATFORMDEF) -Wall -g -fsigned-char -fno-omit-frame-pointer -O0 -DDEBUG=1 -D_DEBUG=1
CFLAGS := $(PLATFORMDEF) -Wall -fsigned-char -fomit-frame-pointer -Os

ifneq ($(strip $(platform)),macosx)
CFLAGS += -mdynamic-no-pic
endif

ifeq ($(strip $(use_zlib)),true)
CFLAGS += -DUSE_ZLIB
LDFLAGS += -lz
Expand Down

0 comments on commit 7e79de7

Please sign in to comment.