dev-qt/qtimageformats: Drop 5.12.4 (r0)
[gentoo.git] / sys-libs / glibc / files / 2.19 / glibc-2.19-hardened-configure-picdefault.patch
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
4 PIC and PIE.
5
6 Patch by Kevin F. Quinn <kevquinn@gentoo.org>
7 Fixed for glibc 2.19 by Magnus Granberg <zorry@ume.nu>
8
9 --- configure.ac
10 +++ configure.ac
11 @@ -2145,7 +2145,7 @@
12  # error PIC is default.
13  #endif
14  EOF
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
18  fi
19  rm -f conftest.*])
20 --- configure
21 +++ configure
22 @@ -7698,7 +7698,7 @@
23  # error PIC is default.
24  #endif
25  EOF
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
29  fi
30  rm -f conftest.*