From 041b6fc3a808c552a2bb7458a0a5541c0c85c28a Mon Sep 17 00:00:00 2001 From: Victor van den Elzen Date: Tue, 30 Jun 2015 14:53:32 +0200 Subject: [PATCH] don't strip debug info except on windows --- Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 6817c89..25848d5 100644 --- a/Makefile +++ b/Makefile @@ -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 @@ -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