git: optimize build by not setting CFLAGS (#40387)

This commit is contained in:
Harmen Stoppels 2023-10-10 11:48:06 +02:00 committed by GitHub
parent 749e99bf11
commit 6c7b2e1056
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -253,8 +253,6 @@ def setup_build_environment(self, env):
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"))