From 40c83f1074443a76643d02b1c2d91d0bf4dbc1fa Mon Sep 17 00:00:00 2001 From: Chris Packham Date: Tue, 13 Sep 2022 22:09:47 +1200 Subject: samples: Disable CC_GCC_ENABLE_DEFAULT_PIE with older glibc glibc versions prior to 2.23 don't compile successfully with --enable-default-pie. While it would be nice to automatically prevent this from being selectable the simplest thing is to update the sample configs that use the older glibc versions to avoid the problem. Fixes #1819 Signed-off-by: Chris Packham --- samples/i686-ubuntu14.04-linux-gnu/crosstool.config | 1 + samples/x86_64-centos7-linux-gnu/crosstool.config | 1 + samples/x86_64-ubuntu14.04-linux-gnu/crosstool.config | 1 + 3 files changed, 3 insertions(+) (limited to 'samples') diff --git a/samples/i686-ubuntu14.04-linux-gnu/crosstool.config b/samples/i686-ubuntu14.04-linux-gnu/crosstool.config index 4a5bb925..cfe9c65d 100644 --- a/samples/i686-ubuntu14.04-linux-gnu/crosstool.config +++ b/samples/i686-ubuntu14.04-linux-gnu/crosstool.config @@ -7,4 +7,5 @@ CT_KERNEL_LINUX=y CT_LINUX_V_3_13=y # CT_KERNEL_LINUX_INSTALL_CHECK is not set CT_GLIBC_V_2_19=y +# CT_CC_GCC_ENABLE_DEFAULT_PIE is not set CT_CC_LANG_CXX=y diff --git a/samples/x86_64-centos7-linux-gnu/crosstool.config b/samples/x86_64-centos7-linux-gnu/crosstool.config index cfe8fa42..d018119a 100644 --- a/samples/x86_64-centos7-linux-gnu/crosstool.config +++ b/samples/x86_64-centos7-linux-gnu/crosstool.config @@ -7,4 +7,5 @@ CT_KERNEL_LINUX=y CT_LINUX_V_3_10=y # CT_KERNEL_LINUX_INSTALL_CHECK is not set CT_GLIBC_V_2_17=y +# CT_CC_GCC_ENABLE_DEFAULT_PIE is not set CT_CC_LANG_CXX=y diff --git a/samples/x86_64-ubuntu14.04-linux-gnu/crosstool.config b/samples/x86_64-ubuntu14.04-linux-gnu/crosstool.config index 15380f0d..ece4ef6f 100644 --- a/samples/x86_64-ubuntu14.04-linux-gnu/crosstool.config +++ b/samples/x86_64-ubuntu14.04-linux-gnu/crosstool.config @@ -7,4 +7,5 @@ CT_KERNEL_LINUX=y CT_LINUX_V_3_13=y # CT_KERNEL_LINUX_INSTALL_CHECK is not set CT_GLIBC_V_2_19=y +# CT_CC_GCC_ENABLE_DEFAULT_PIE is not set CT_CC_LANG_CXX=y -- cgit v1.2.3