[Buildroot] [PATCH] libsodium: disable PIE on ARC
Alexey Brodkin
Alexey.Brodkin at synopsys.com
Mon Aug 10 11:24:50 UTC 2015
Even though ARC gcc understands "-pie" option and attempts to generate
PIE binaries as of today PIE is not really supported for user-space
applications.
So we disable PIE detection if building for ARC.
That fixes http://autobuild.buildroot.net/results/be4/be46b621ce5443788b0a1bc9fab614c4ca5d0859
and also prevents execution of non-supported PIE binary in runtime.
Signed-off-by: Alexey Brodkin <abrodkin at synopsys.com>
Cc: Thomas Petazzoni <thomas.petazzoni at free-electrons.com>
---
package/libsodium/libsodium.mk | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/package/libsodium/libsodium.mk b/package/libsodium/libsodium.mk
index c032863..18035f3 100644
--- a/package/libsodium/libsodium.mk
+++ b/package/libsodium/libsodium.mk
@@ -10,4 +10,8 @@ LIBSODIUM_LICENSE = ISC
LIBSODIUM_LICENSE_FILES = LICENSE
LIBSODIUM_INSTALL_STAGING = YES
+ifeq ($(BR2_arc),y)
+LIBSODIUM_CONF_OPTS += --disable-pie
+endif
+
$(eval $(autotools-package))
--
2.4.3
More information about the buildroot
mailing list