lhapdf: Pass additional python lib dirs only if possible (#36771)
This commit is contained in:
parent
781769545f
commit
31c583581f
@ -42,11 +42,15 @@ class Lhapdf(AutotoolsPackage):
|
|||||||
depends_on("gettext", type="build", when="+python")
|
depends_on("gettext", type="build", when="+python")
|
||||||
|
|
||||||
def configure_args(self):
|
def configure_args(self):
|
||||||
args = [
|
args = ["FCFLAGS=-O3", "CFLAGS=-O3", "CXXFLAGS=-O3"]
|
||||||
"FCFLAGS=-O3",
|
|
||||||
"CFLAGS=-O3",
|
if self.spec.satisfies("+python"):
|
||||||
"CXXFLAGS=-O3",
|
args.extend(
|
||||||
"LIBS=-L" + self.spec["python"].prefix.lib + " -L" + self.spec["gettext"].prefix.lib,
|
"LIBS=-L"
|
||||||
]
|
+ self.spec["python"].prefix.lib
|
||||||
|
+ " -L"
|
||||||
|
+ self.spec["gettext"].prefix.lib
|
||||||
|
)
|
||||||
|
|
||||||
args.extend(self.enable_or_disable("python"))
|
args.extend(self.enable_or_disable("python"))
|
||||||
return args
|
return args
|
||||||
|
Loading…
Reference in New Issue
Block a user