From 2a5aa19acec9352c905d0cbe62ed47e508243024 Mon Sep 17 00:00:00 2001 From: Stefano Ragni Date: Sun, 27 Sep 2020 15:31:23 +0200 Subject: [PATCH] slurm-wlm: use lazy bind (fix plugin loading) --- srcpkgs/slurm-wlm/template | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/srcpkgs/slurm-wlm/template b/srcpkgs/slurm-wlm/template index 9753cabe79fdda..d5b5880370d896 100644 --- a/srcpkgs/slurm-wlm/template +++ b/srcpkgs/slurm-wlm/template @@ -1,7 +1,7 @@ # Template file for 'slurm-wlm' pkgname=slurm-wlm version=19.05.5.1 -revision=2 +revision=3 _distver="${version//./-}" wrksrc="slurm-slurm-${_distver}" build_style=gnu-configure @@ -20,6 +20,10 @@ checksum=e53e67bd0bb4c37a9c481998764a746467a96bc41d6527569080514f36452c07 CFLAGS="-fcommon" +# Fix plugin loading. Yes, this disables hardening, this is on purpose +# https://bugs.schedmd.com/show_bug.cgi?id=2443 +LDFLAGS="-Wl,-z,lazy" + if [ "$XBPS_TARGET_WORDSIZE" = "32" ]; then # configure: error: 32-bit support is deprecated, and not tested # regularly. Use at your own risk.