Skip to content

Commit

Permalink
don't strip debug info except on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
victorvde committed Jun 30, 2015
1 parent db08f81 commit 041b6fc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ WINDOWS=0
# VARIABLES
CFLAGS+=-std=c11 -pedantic
CFLAGS+=-msse2 -mfpmath=sse
CFLAGS+=-g
WARN_FLAGS+=-Wall -Wextra -Winline -Wshadow
NO_WARN_FLAGS+=-w
CC?=$(HOST)gcc
Expand Down Expand Up @@ -44,16 +45,15 @@ endif

ifeq ($(DEBUG),1)
CFLAGS+=-Og -DDEBUG
BFLAGS+=-pg -g
BFLAGS+=-pg
else
CFLAGS+=-O3 -DNDEBUG
LDFLAGS+=-s
endif

ifeq ($(WINDOWS),1)
HOST=i686-w64-mingw32-
EXE=.exe
LDFLAGS+=-static
LDFLAGS+=-static -s

RES+=icon.rc.o
endif
Expand Down

0 comments on commit 041b6fc

Please sign in to comment.