Commits

Sven Eckelmann  committed f934d7a

use (C|LD)FLAGS+= instead of (C|LD)FLAGS= so the user can add flags

  • Participants
  • Parent commits 1b3f1c7

Comments (0)

Files changed (1)

File projects/unix/Makefile

 endif
 
 # base CFLAGS, LIBS, and LDFLAGS
-CFLAGS = -Wall -ffast-math -funroll-loops -fexpensive-optimizations -fno-strict-aliasing -I../../src -I../../src/wrapper -DGCC
-LDFLAGS = -ldl -lpng
+CFLAGS += -Wall -ffast-math -funroll-loops -fexpensive-optimizations -fno-strict-aliasing -I../../src -I../../src/wrapper -DGCC
+LDFLAGS += -ldl -lpng
 
 # Since we are building a shared library, we must compile with -fPIC for x86_64 CPUs.
 # On 32-bit systems we do not want to use -fPIC because we don't have to and it has a big performance penalty on this arch