From 2c8ab85e6ad726f7727c44e31e4f9ca7d1eabeed Mon Sep 17 00:00:00 2001 From: "Adam J. Stewart" Date: Wed, 23 Nov 2022 18:33:33 -0600 Subject: [PATCH] gnuplot: fix build with Apple Clang (#34092) --- var/spack/repos/builtin/packages/gnuplot/package.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/var/spack/repos/builtin/packages/gnuplot/package.py b/var/spack/repos/builtin/packages/gnuplot/package.py index a51416c565..6a2175c6a9 100644 --- a/var/spack/repos/builtin/packages/gnuplot/package.py +++ b/var/spack/repos/builtin/packages/gnuplot/package.py @@ -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