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 --- config.h.in | 3 +++ 1 file changed, 3 insertions(+) (limited to 'config.h.in') diff --git a/config.h.in b/config.h.in index 947feeff36..06ee8ae26a 100644 --- a/config.h.in +++ b/config.h.in @@ -259,6 +259,9 @@ /* Build glibc with tunables support. */ #define HAVE_TUNABLES 0 +/* Define if static PIE is supported. */ +#undef SUPPORT_STATIC_PIE + /* Define if static PIE is enabled. */ #define ENABLE_STATIC_PIE 0 -- cgit 1.4.1