From e366283acfc9e004ce8fac9723db78017f3d96ff Mon Sep 17 00:00:00 2001 From: "Sven M. Hallberg" <pesco@khjk.org> Date: Mon, 8 Aug 2022 13:19:10 +0200 Subject: [PATCH] accept CFLAGS from the environment Lets one, e.g., add -fPIC if compiling with GCC but linking with LLD. --- SConstruct | 1 + 1 file changed, 1 insertion(+) diff --git a/SConstruct b/SConstruct index 81de5c83..0aa5670f 100644 --- a/SConstruct +++ b/SConstruct @@ -111,6 +111,7 @@ AddOption('--tests', env['CC'] = os.getenv('CC') or env['CC'] env['CXX'] = os.getenv('CXX') or env['CXX'] +env['CFLAGS'] = os.getenv('CFLAGS') or env['CFLAGS'] # Language standard and warnings if env['CC'] == 'cl': -- GitLab