2009-11-27 Magnus Granberg #293637 For >= glibc-2.11 we remove the append-cppflags -DPIC and use glibc-2.11 hardened-pie.patch to get -DPIC in the CPPFLAGS. --- sys-libs/glibc/files/eblits/common.eblit.zorry 2009-01-28 19:37:02.000000000 +0100 +++ sys-libs/glibc/files/eblits/common.eblit 2009-11-27 17:08:15.000000000 +0100 @@ -175,7 +175,9 @@ if use hardened && gcc-specs-pie ; then # Force PIC macro definition for all compilations since they're all # either -fPIC or -fPIE with the default-PIE compiler. - append-cppflags -DPIC + if [[ ${PV} < 2.11 ]] ; then + append-cppflags -DPIC + fi else # Don't build -fPIE without the default-PIE compiler and the # hardened-pie patch