slurm-wlm: use lazy bind (fix plugin loading)

This commit is contained in:
Stefano Ragni 2020-09-27 15:31:23 +02:00 committed by Toyam Cox
parent d955398cda
commit e3c3c95635

View file

@ -1,7 +1,7 @@
# Template file for 'slurm-wlm' # Template file for 'slurm-wlm'
pkgname=slurm-wlm pkgname=slurm-wlm
version=19.05.5.1 version=19.05.5.1
revision=2 revision=3
_distver="${version//./-}" _distver="${version//./-}"
wrksrc="slurm-slurm-${_distver}" wrksrc="slurm-slurm-${_distver}"
build_style=gnu-configure build_style=gnu-configure
@ -20,6 +20,10 @@ checksum=e53e67bd0bb4c37a9c481998764a746467a96bc41d6527569080514f36452c07
CFLAGS="-fcommon" 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 if [ "$XBPS_TARGET_WORDSIZE" = "32" ]; then
# configure: error: 32-bit support is deprecated, and not tested # configure: error: 32-bit support is deprecated, and not tested
# regularly. Use at your own risk. # regularly. Use at your own risk.