File: 0010-makefile-fix-Prepend-CPPFLAGS-value-to-CFLAGS.patch

package info (click to toggle)
cbflib 0.9.7%2Bdfsg1-5.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 65,276 kB
  • sloc: ansic: 131,361; python: 22,780; sh: 3,108; makefile: 2,089; yacc: 659; java: 223; f90: 214; xml: 210; cpp: 58
file content (26 lines) | stat: -rw-r--r-- 870 bytes parent folder | download | duplicates (3)
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
From: Teemu Ikonen <tpikonen@gmail.com>
Date: Sat, 13 Oct 2018 21:24:58 +0300
Subject: makefile-fix: Prepend CPPFLAGS value to CFLAGS.

---
 Makefile | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/Makefile b/Makefile
index cc65588..0213090 100644
--- a/Makefile
+++ b/Makefile
@@ -667,10 +667,11 @@ endif
 #########################################################
 CC	= gcc
 C++	= g++
+CPPFLAGS ?=
 ifneq ($(CBFDEBUG),)
-CFLAGS  += -g -O0 -Wall -D_USE_XOPEN_EXTENDED -fno-strict-aliasing -DCBFDEBUG=1  $(HDF5CFLAGS)
+CFLAGS  += $(CPPFLAGS) -g -O0 -Wall -D_USE_XOPEN_EXTENDED -fno-strict-aliasing -DCBFDEBUG=1  $(HDF5CFLAGS)
 else
-CFLAGS  += -g -O3 -Wall -D_USE_XOPEN_EXTENDED -fno-strict-aliasing  $(HDF5CFLAGS)
+CFLAGS  += $(CPPFLAGS) -g -O3 -Wall -D_USE_XOPEN_EXTENDED -fno-strict-aliasing  $(HDF5CFLAGS)
 endif
 LDFLAGS +=
 F90C = gfortran