libffi: update for best practices (#50050)
This commit is contained in:
parent
31ce23f3fc
commit
a38045f77e
@ -33,8 +33,8 @@ class Libffi(AutotoolsPackage):
|
|||||||
sha256="d06ebb8e1d9a22d19e38d63fdb83954253f39bedc5d46232a05645685722ca37",
|
sha256="d06ebb8e1d9a22d19e38d63fdb83954253f39bedc5d46232a05645685722ca37",
|
||||||
)
|
)
|
||||||
|
|
||||||
depends_on("c", type="build") # generated
|
depends_on("c", type="build")
|
||||||
depends_on("cxx", type="build") # generated
|
depends_on("cxx", type="build")
|
||||||
|
|
||||||
patch("clang-powerpc-3.2.1.patch", when="@3.2.1 platform=linux %clang")
|
patch("clang-powerpc-3.2.1.patch", when="@3.2.1 platform=linux %clang")
|
||||||
# ref.: https://github.com/libffi/libffi/pull/561
|
# ref.: https://github.com/libffi/libffi/pull/561
|
||||||
@ -66,7 +66,7 @@ def flag_handler(self, name, flags):
|
|||||||
|
|
||||||
def configure_args(self):
|
def configure_args(self):
|
||||||
args = ["--with-pic"]
|
args = ["--with-pic"]
|
||||||
if self.spec.version >= Version("3.3"):
|
if self.spec.satisfies("@3.3:"):
|
||||||
# Spack adds its own target flags, so tell libffi not to
|
# Spack adds its own target flags, so tell libffi not to
|
||||||
# second-guess us
|
# second-guess us
|
||||||
args.append("--without-gcc-arch")
|
args.append("--without-gcc-arch")
|
||||||
|
Loading…
Reference in New Issue
Block a user