1 Prevent default-fPIE from confusing configure into thinking
2 PIC code is default. This causes glibc to build both PIC and
3 non-PIC code as normal, which on the hardened compiler generates
6 Patch by Kevin F. Quinn <kevquinn@gentoo.org>
7 Fixed for glibc 2.19 by Magnus Granberg <zorry@ume.nu>
12 # error PIC is default.
15 -if eval "${CC-cc} -S conftest.c 2>&AS_MESSAGE_LOG_FD 1>&AS_MESSAGE_LOG_FD"; then
16 +if eval "${CC-cc} -fno-PIE -S conftest.c 2>&AS_MESSAGE_LOG_FD 1>&AS_MESSAGE_LOG_FD"; then
17 libc_cv_pic_default=no
23 # error PIC is default.
26 -if eval "${CC-cc} -S conftest.c 2>&5 1>&5"; then
27 +if eval "${CC-cc} -fno-PIE -S conftest.c 2>&5 1>&5"; then
28 libc_cv_pic_default=no