diff options
| author | Florian Weimer <fweimer@redhat.com> | 2019-11-26 14:48:56 +0100 |
|---|---|---|
| committer | Florian Weimer <fweimer@redhat.com> | 2019-11-26 14:53:59 +0100 |
| commit | a0dd512cbcc1db29b0ddce80cedadbf2c2af49b7 (patch) | |
| tree | 6a8afafa7629e5b017d796ce89ca982e902e9321 /configure | |
| parent | 7fc8c286e31a336caa008a8bcfb00aac1e47cdc8 (diff) | |
| download | glibc-fw/bug25225.tar.xz glibc-fw/bug25225.zip | |
x86: Assume --enable-cet if GCC defaults to CET [BZ #25225]fw/bug25225
This links in CET support if GCC defaults to CET. Otherwise, __CET__
is defined, yet CET functionality is not compiled and linked into the
dynamic loader, resulting in a linker failure due to undefined
references to _dl_cet_check and _dl_open_check.
Diffstat (limited to 'configure')
| -rwxr-xr-x | configure | 23 |
1 files changed, 22 insertions, 1 deletions
@@ -3777,11 +3777,32 @@ else fi +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + +#ifndef __CET__ +#error no CET compiler support +#endif + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + libc_cv_compiler_default_cet=yes +else + libc_cv_compiler_default_cet=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + # Check whether --enable-cet was given. if test "${enable_cet+set}" = set; then : enableval=$enable_cet; enable_cet=$enableval else - enable_cet=no + enable_cet=$libc_cv_compiler_default_cet fi |
