pgplot: fix build failure when using +X (#32542)

The spec was using the wrong key to find the X11 library flags.
This commit is contained in:
Philipp Edelmann 2022-09-12 02:58:43 -06:00 committed by GitHub
parent 17b98f6b1f
commit dea1e12c88
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -52,7 +52,7 @@ def edit(self, spec, prefix):
libs = ""
if "+X" in spec:
libs += " " + self.spec["X11"].libs.ld_flags
libs += " " + self.spec["libx11"].libs.ld_flags
if "+png" in spec:
libs += " " + self.spec["libpng"].libs.ld_flags
@ -120,7 +120,7 @@ def edit(self, spec, prefix):
def setup_build_environment(self, env):
if "+X" in self.spec:
env.append_flags("LIBS", self.spec["X11"].libs.ld_flags)
env.append_flags("LIBS", self.spec["libx11"].libs.ld_flags)
if "+png" in self.spec:
env.append_flags("LIBS", self.spec["libpng"].libs.ld_flags)