diff options
author | Adam J. Stewart <ajstewart426@gmail.com> | 2022-11-23 18:33:33 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-24 01:33:33 +0100 |
commit | 2c8ab85e6ad726f7727c44e31e4f9ca7d1eabeed (patch) | |
tree | 69a3e1d04a0be966185b6d8cd424613836927446 | |
parent | b2505aed5c0f4c1678b04cab5a00d0737a946ee6 (diff) | |
download | spack-2c8ab85e6ad726f7727c44e31e4f9ca7d1eabeed.tar.gz spack-2c8ab85e6ad726f7727c44e31e4f9ca7d1eabeed.tar.bz2 spack-2c8ab85e6ad726f7727c44e31e4f9ca7d1eabeed.tar.xz spack-2c8ab85e6ad726f7727c44e31e4f9ca7d1eabeed.zip |
gnuplot: fix build with Apple Clang (#34092)
-rw-r--r-- | var/spack/repos/builtin/packages/gnuplot/package.py | 4 |
1 files changed, 3 insertions, 1 deletions
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 @@ class Gnuplot(AutotoolsPackage): # 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 |