]> rtime.felk.cvut.cz Git - coffee/buildroot.git/commitdiff
lvm2: disable PIE on ARC
authorAlexey Brodkin <Alexey.Brodkin@synopsys.com>
Wed, 1 Jul 2015 12:35:51 +0000 (15:35 +0300)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Thu, 2 Jul 2015 09:00:45 +0000 (11:00 +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 first fixes http://autobuild.buildroot.net/results/988/9888a7a30538c9851f4910c16674d8dbb8edeb8f/
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/lvm2/lvm2.mk

index bae0d549a504b42f100c5fe21b1041e1d76bd2c1..6a3aec39794299cf4b84afaba2ceaf4e5bdc0167 100644 (file)
@@ -43,4 +43,8 @@ else
 LVM2_CONF_OPTS += --disable-applib
 endif
 
+ifeq ($(BR2_arc),y)
+LVM2_CONF_ENV += ac_cv_flag_HAVE_PIE=no
+endif
+
 $(eval $(autotools-package))