1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
|
From: Mattia Rizzolo <mattia@debian.org>
Date: Wed, 22 Nov 2017 11:21:25 +0100
Subject: inherit build flags from the environment
Signed-off-by: Mattia Rizzolo <mattia@debian.org>
---
Makefile | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/Makefile b/Makefile
index b60e992..90a18e6 100644
--- a/Makefile
+++ b/Makefile
@@ -8,7 +8,7 @@ CC=gcc
## Compiler flags:
# GCC: (also -march=pentium etc, for machine-dependent optimizing)
-CFLAGS=-Wall -O3 -fomit-frame-pointer -funroll-loops
+CFLAGS += -Wall -O3 -fomit-frame-pointer -funroll-loops
# GCC w/ debugging:
#CFLAGS=-Wall -g -DINLINE=
@@ -27,7 +27,7 @@ SHCFLAGS = -fPIC -fvisibility=hidden
#SHLDFLAGS = --shared -Wl,--soname=$(SONAME) -Wl,--version-script=libcliquer.map
#SHCFLAGS = -fPIC
-CPPFLAGS =
+CPPFLAGS +=
## Program options:
|