quagga: disable PIE on ARC
authorAlexey Brodkin <Alexey.Brodkin@synopsys.com>
Thu, 9 Jul 2015 10:00:11 +0000 (13:00 +0300)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Thu, 9 Jul 2015 20:14:19 +0000 (22:14 +0200)
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/ca0/ca0b1e271f29d7639b6a6e895472a35e2c1d8aba
and also prevents execution of non-supported PIE binary in runtime.

Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/quagga/quagga.mk

index 756d6e0e18f709a0c7cf1a5389685dd90e2abf8b..ce1d34b264ca51c7612b87b520e24a779e8e5240 100644 (file)
@@ -39,4 +39,8 @@ else
 QUAGGA_CONF_OPTS += --disable-vtysh
 endif
 
+ifeq ($(BR2_arc),y)
+QUAGGA_CONF_OPTS += --disable-pie
+endif
+
 $(eval $(autotools-package))