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:
parent
17b98f6b1f
commit
dea1e12c88
@ -52,7 +52,7 @@ def edit(self, spec, prefix):
|
|||||||
|
|
||||||
libs = ""
|
libs = ""
|
||||||
if "+X" in spec:
|
if "+X" in spec:
|
||||||
libs += " " + self.spec["X11"].libs.ld_flags
|
libs += " " + self.spec["libx11"].libs.ld_flags
|
||||||
if "+png" in spec:
|
if "+png" in spec:
|
||||||
libs += " " + self.spec["libpng"].libs.ld_flags
|
libs += " " + self.spec["libpng"].libs.ld_flags
|
||||||
|
|
||||||
@ -120,7 +120,7 @@ def edit(self, spec, prefix):
|
|||||||
|
|
||||||
def setup_build_environment(self, env):
|
def setup_build_environment(self, env):
|
||||||
if "+X" in self.spec:
|
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:
|
if "+png" in self.spec:
|
||||||
env.append_flags("LIBS", self.spec["libpng"].libs.ld_flags)
|
env.append_flags("LIBS", self.spec["libpng"].libs.ld_flags)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user