cifs-utils: disable PIE for m68k
PATCH 1/1 cifs-utils: disable PIE for m68k
PIE is not supported for uClibc-ng/m68k.
Fixes following autobuild failure:
http://autobuild.buildroot.net/results/4246de0280d4e7f8765adefd379c9dd414c316f1/
--- package/cifs-utils/cifs-utils.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
package/cifs-utils/cifs-utils.mk +1 -1
@@ -10,7 +10,7 @@ CIFS_UTILS_SITE = http://ftp.samba.org/pub/linux-cifs/cifs-utils CIFS_UTILS_LICENSE = GPLv3+ CIFS_UTILS_LICENSE_FILES = COPYING -ifeq ($(BR2_STATIC_LIBS),y) +ifneq ($(BR2_STATIC_LIBS)$(BR2_m68k),) CIFS_UTILS_CONF_OPTS += --disable-pie endif
Signature · 1 line
2.1.4
PATCH 1/1 cifs-utils: disable PIE for m68k
Hello,
Quoted 15 lines · Waldemar Brodkorb
PIE is not supported for uClibc-ng/m68k.
Fixes following autobuild failure:
http://autobuild.buildroot.net/results/4246de0280d4e7f8765adefd379c9dd414c316f1/Signed-off-by Waldemar Brodkorb <[email protected]>--- package/cifs-utils/cifs-utils.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)package/cifs-utils/cifs-utils.mk +0
-0
package/cifs-utils/cifs-utils.mk CIFS_UTILS_SITE = http://ftp.samba.org/pub/linux-cifs/cifs-utils · line 16
Quoted 8 lines
package/cifs-utils/cifs-utils.mk +1
-1@@ -10,7 +10,7 @@ CIFS_UTILS_SITE = http://ftp.samba.org/pub/linux-cifs/cifs-utils CIFS_UTILS_LICENSE = GPLv3+ CIFS_UTILS_LICENSE_FILES = COPYING -ifeq ($(BR2_STATIC_LIBS),y) +ifneq ($(BR2_STATIC_LIBS)$(BR2_m68k),) CIFS_UTILS_CONF_OPTS += --disable-pie endif
I've applied, but I'm wondering if we don't need to introduce a BR2_TOOLCHAIN_SUPPORTS_PIE hidden boolean. PIE is not supported on ARC and m68k, and it's not supported when statically linking with uClibc.
I have seen gcc patches for musl that make static PIE work, see
https://github.com/richfelker/musl-cross-make/blob/master/patches/gcc-5.3.0/0005-staticpie.diff.
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com