File: 0009-makefile-fix-Pick-up-CFLAGS-and-LDFLAGS-from-the-env.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 (27 lines) | stat: -rw-r--r-- 865 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
27
From: Teemu Ikonen <tpikonen@gmail.com>
Date: Thu, 11 Oct 2018 10:50:23 +0300
Subject: makefile-fix: Pick up CFLAGS and LDFLAGS from the environment.

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

diff --git a/Makefile b/Makefile
index 4bfa95c..cc65588 100644
--- a/Makefile
+++ b/Makefile
@@ -668,11 +668,11 @@ endif
 CC	= gcc
 C++	= g++
 ifneq ($(CBFDEBUG),)
-CFLAGS  = -g -O0 -Wall -D_USE_XOPEN_EXTENDED -fno-strict-aliasing -DCBFDEBUG=1  $(HDF5CFLAGS)
+CFLAGS  += -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  += -g -O3 -Wall -D_USE_XOPEN_EXTENDED -fno-strict-aliasing  $(HDF5CFLAGS)
 endif
-LDFLAGS =
+LDFLAGS +=
 F90C = gfortran
 F90FLAGS = -g -fno-range-check -fallow-invalid-boz
 F90LDFLAGS =