gnuplot: fix build with Apple Clang (#34092)

This commit is contained in:
Adam J. Stewart 2022-11-23 18:33:33 -06:00 committed by GitHub
parent b2505aed5c
commit 2c8ab85e6a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -158,5 +158,7 @@ def configure_args(self):
# TODO: --with-aquaterm depends_on('aquaterm')
options.append("--without-aquaterm")
os.environ["LDFLAGS"] = "-Wl,--copy-dt-needed-entries"
if spec.satisfies("%gcc@11:"):
os.environ["LDFLAGS"] = "-Wl,--copy-dt-needed-entries"
return options