Package: spooles / 2.2-14

set_CFLAGS_from_ENV.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
Description: set CFLAGS from environment
Author: Anton Gladky <gladk@debian.org>
Last-Update: 2013-10-01

--- spooles-2.2.orig/Make.inc
+++ spooles-2.2/Make.inc
@@ -28,14 +28,14 @@
 # 
 # OPTLEVEL = 
 # OPTLEVEL = -g -v
-  OPTLEVEL = -O2
+# OPTLEVEL = -O2
 # OPTLEVEL = -xO5 -v
 # OPTLEVEL = -O3
 # OPTLEVEL = -O4
 # CFLAGS = -Wall -g
 # CFLAGS = -Wall -pg
 # CFLAGS = $(OPTLEVEL) -D_POSIX_C_SOURCE=199506L
-  CFLAGS = $(OPTLEVEL)
+  CFLAGS = $(shell dpkg-buildflags --get CFLAGS)
 # CFLAGS = -Wall $(OPTLEVEL)
 #
 #----------------------------------------