Package: ne / 3.1.2-1

03_allow_cflags_override.diff Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
Description: Use cflags and ldflags from dpkg-buildflags and avoid
 the usage of -O3 optimization level.
Forwarded: no
Author: Julián Moreno Patiño <darkjunix@gmail.com>
Last-Update: 2019-02-11
--- a/src/makefile
+++ b/src/makefile
@@ -90,11 +90,11 @@
 GCCFLAGS=-std=c99 -Wall -Wno-parentheses
 endif
 
-CFLAGS=$(OPTS) $(GCCFLAGS) \
+CFLAGS+=$(OPTS) $(GCCFLAGS) \
 	-D_REGEX_LARGE_OFFSETS -D_GNU_SOURCE -DSTDC_HEADERS -Dinline=__inline__ \
 	$(if $(NE_NOWCHAR), -DNOWCHAR,) \
 	$(if $(NE_TEST),    -DNE_TEST -coverage,) \
-	$(if $(NE_DEBUG),   -g -fsanitize=address -fsanitize=undefined,-O3 -DNDEBUG) \
+	$(if $(NE_DEBUG),   -g -fsanitize=address -fsanitize=undefined,-DNDEBUG) \
 	$(if $(NE_TERMCAP), -DTERMCAP,) \
 	$(if $(NE_ANSI),    -DTERMCAP -DANSI,)