From d210425eef832c10a6c74365068a3262d20b576b Mon Sep 17 00:00:00 2001 From: Harmen Stoppels Date: Tue, 23 Apr 2024 07:44:15 +0200 Subject: [PATCH] nettle: remove openssl dep (#43770) --- var/spack/repos/builtin/packages/nettle/package.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/var/spack/repos/builtin/packages/nettle/package.py b/var/spack/repos/builtin/packages/nettle/package.py index 1ebcd3fc0d..a0262fab28 100644 --- a/var/spack/repos/builtin/packages/nettle/package.py +++ b/var/spack/repos/builtin/packages/nettle/package.py @@ -26,7 +26,11 @@ class Nettle(AutotoolsPackage, GNUMirrorPackage): depends_on("gmp") depends_on("m4", type="build") - depends_on("openssl") + + def flag_handler(self, name, flags): + if name == "cflags": + flags.append(self.compiler.c99_flag) + return (flags, None, None) def configure_args(self): - return ["CFLAGS={0}".format(self.compiler.c99_flag)] + return ["--disable-openssl"]