From 374cef32ac36d956f75ccc6416872498bbe66e82 Mon Sep 17 00:00:00 2001 From: Szabolcs Nagy Date: Wed, 20 Jan 2021 12:26:31 +0000 Subject: configure: Check for static PIE support Add SUPPORT_STATIC_PIE that targets can define if they support static PIE. This requires PI_STATIC_AND_HIDDEN support and various linker features as described in commit 9d7a3741c9e59eba87fb3ca6b9f979befce07826 Add --enable-static-pie configure option to build static PIE [BZ #19574] Currently defined on x86_64, i386 and aarch64 where static PIE is known to work. Reviewed-by: Adhemerval Zanella --- sysdeps/x86_64/configure | 3 +++ 1 file changed, 3 insertions(+) (limited to 'sysdeps/x86_64/configure') diff --git a/sysdeps/x86_64/configure b/sysdeps/x86_64/configure index 84f82c2406..198554d788 100644 --- a/sysdeps/x86_64/configure +++ b/sysdeps/x86_64/configure @@ -143,5 +143,8 @@ fi $as_echo "#define PI_STATIC_AND_HIDDEN 1" >>confdefs.h +$as_echo "#define SUPPORT_STATIC_PIE 1" >>confdefs.h + + test -n "$critic_missing" && as_fn_error $? " *** $critic_missing" "$LINENO" 5 -- cgit v1.2.3-70-g09d2