summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHarmen Stoppels <harmenstoppels@gmail.com>2023-10-10 11:48:06 +0200
committerGitHub <noreply@github.com>2023-10-10 11:48:06 +0200
commit6c7b2e1056bbd158544da9b6a79fd4099c18cd7a (patch)
tree0f78cff908b0798147cb1e76bc601443f896098d
parent749e99bf11d52bd865b11c28d2a48e1ef84b8222 (diff)
downloadspack-6c7b2e1056bbd158544da9b6a79fd4099c18cd7a.tar.gz
spack-6c7b2e1056bbd158544da9b6a79fd4099c18cd7a.tar.bz2
spack-6c7b2e1056bbd158544da9b6a79fd4099c18cd7a.tar.xz
spack-6c7b2e1056bbd158544da9b6a79fd4099c18cd7a.zip
git: optimize build by not setting CFLAGS (#40387)
-rw-r--r--var/spack/repos/builtin/packages/git/package.py2
1 files changed, 0 insertions, 2 deletions
diff --git a/var/spack/repos/builtin/packages/git/package.py b/var/spack/repos/builtin/packages/git/package.py
index b0984f52c1..b63335eabc 100644
--- a/var/spack/repos/builtin/packages/git/package.py
+++ b/var/spack/repos/builtin/packages/git/package.py
@@ -253,8 +253,6 @@ class Git(AutotoolsPackage):
extlib_bits.append(spec["gettext"].libs.search_flags)
extlib_bits.append("-lintl")
env.append_flags("EXTLIBS", " ".join(extlib_bits))
- if not is_system_path(spec["gettext"].prefix):
- env.append_flags("CFLAGS", spec["gettext"].headers.include_flags)
if not self.spec["curl"].satisfies("libs=shared"):
curlconfig = which(os.path.join(self.spec["curl"].prefix.bin, "curl-config"))