Source: cdftools
Version: 4.0.0-3
Tags: patch
User: debian-...@lists.debian.org
Usertags: pac-bti

Hi,
currently cdftools hardcodes the value of FFLAGS.

The attached patch ensures FFLAGS is appended to rather than
overwritten, so that the default build flags can be used.

See 
https://wiki.debian.org/ToolChain/PACBTI#Packages_overriding_the_default_build_flags
From: Emanuele Rocca <e...@debian.org>
Date: Tue, 6 May 2025 14:41:12 +0200
Subject: [PATCH] Do not override FFLAGS

---
 debian/macro.f95_debian | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/debian/macro.f95_debian b/debian/macro.f95_debian
index 2b7dc01..e2649d7 100644
--- a/debian/macro.f95_debian
+++ b/debian/macro.f95_debian
@@ -12,6 +12,6 @@ KEYS = -D key_netcdf4 # -D key_CMIP6
 
 #F90=gfortran -v
 F90=f95
-FFLAGS= -O3 -Wl,-z,now $(LDFLAGS) $(KEYS)  $(NCDF)  -fno-second-underscore -ffree-line-length-256 -D_FORTIFY_SOURCE=2  -fstack-protector --param=ssp-buffer-size=4 -Wl,--as-needed
+FFLAGS+= -O3 -Wl,-z,now $(LDFLAGS) $(KEYS)  $(NCDF)  -fno-second-underscore -ffree-line-length-256 -D_FORTIFY_SOURCE=2  -fstack-protector --param=ssp-buffer-size=4 -Wl,--as-needed
 
 INSTALL=$(HOME)/bin
-- 
2.39.5

Reply via email to