From 9f0bbb0b8ac6d146e6d60af267abcccac7072de5 Mon Sep 17 00:00:00 2001 From: Ionen Wolkens Date: Sun, 24 Apr 2022 02:15:45 -0400 Subject: x11-drivers/nvidia-drivers: use -fPIC for libXNVCtrl.a as well Should revbump but would rather not cause rebuilds over this given this is a no-op unless forced USE=-pie on gcc through profile's package.use.force (clang now also defaults to it). nvidia-drivers already get rebuilt on kernel upgrades which will phase it out for -pie users (please manually rebuild if issues). Legacy 0/390 branch is not affected. Closes: https://bugs.gentoo.org/840389 Signed-off-by: Ionen Wolkens --- x11-drivers/nvidia-drivers/nvidia-drivers-470.103.01.ebuild | 1 + x11-drivers/nvidia-drivers/nvidia-drivers-470.62.26.ebuild | 1 + x11-drivers/nvidia-drivers/nvidia-drivers-510.60.02.ebuild | 1 + 3 files changed, 3 insertions(+) (limited to 'x11-drivers') diff --git a/x11-drivers/nvidia-drivers/nvidia-drivers-470.103.01.ebuild b/x11-drivers/nvidia-drivers/nvidia-drivers-470.103.01.ebuild index 927302a8b1f7..6cf1485d9a3b 100644 --- a/x11-drivers/nvidia-drivers/nvidia-drivers-470.103.01.ebuild +++ b/x11-drivers/nvidia-drivers/nvidia-drivers-470.103.01.ebuild @@ -172,6 +172,7 @@ src_compile() { HOST_LD="$(tc-getBUILD_LD)" NV_USE_BUNDLED_LIBJANSSON=0 NV_VERBOSE=1 DO_STRIP= MANPAGE_GZIP= OUTPUTDIR=out + XNVCTRL_CFLAGS=-fPIC #840389 ) use driver && linux-mod_src_compile diff --git a/x11-drivers/nvidia-drivers/nvidia-drivers-470.62.26.ebuild b/x11-drivers/nvidia-drivers/nvidia-drivers-470.62.26.ebuild index a04389a83803..cab98353f284 100644 --- a/x11-drivers/nvidia-drivers/nvidia-drivers-470.62.26.ebuild +++ b/x11-drivers/nvidia-drivers/nvidia-drivers-470.62.26.ebuild @@ -172,6 +172,7 @@ src_compile() { HOST_LD="$(tc-getBUILD_LD)" NV_USE_BUNDLED_LIBJANSSON=0 NV_VERBOSE=1 DO_STRIP= MANPAGE_GZIP= OUTPUTDIR=out + XNVCTRL_CFLAGS=-fPIC #840389 ) use driver && linux-mod_src_compile diff --git a/x11-drivers/nvidia-drivers/nvidia-drivers-510.60.02.ebuild b/x11-drivers/nvidia-drivers/nvidia-drivers-510.60.02.ebuild index 869bb3b67904..e888f6de08a4 100644 --- a/x11-drivers/nvidia-drivers/nvidia-drivers-510.60.02.ebuild +++ b/x11-drivers/nvidia-drivers/nvidia-drivers-510.60.02.ebuild @@ -176,6 +176,7 @@ src_compile() { HOST_LD="$(tc-getBUILD_LD)" NV_USE_BUNDLED_LIBJANSSON=0 NV_VERBOSE=1 DO_STRIP= MANPAGE_GZIP= OUTPUTDIR=out + XNVCTRL_CFLAGS=-fPIC #840389 ) use driver && linux-mod_src_compile -- cgit v1.2.3-65-gdbad