From de174a201b83b559f7add3a4ba67f9331b8d5035 Mon Sep 17 00:00:00 2001 From: Slava Barinov Date: Wed, 5 Feb 2020 14:20:41 +0300 Subject: [PATCH] packaging: Turning on PIE compilation by default This makes all glibc internal tools (like getent) pie. Change-Id: I134ec4c1d858397597d51411ed0073cb7330dc74 Signed-off-by: Slava Barinov --- packaging/glibc.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packaging/glibc.spec b/packaging/glibc.spec index f942f4d..ef49164 100644 --- a/packaging/glibc.spec +++ b/packaging/glibc.spec @@ -336,7 +336,7 @@ configure_and_build_glibc() { --enable-bind-now --enable-obsolete-rpc \ --disable-nscd \ --disable-experimental-malloc \ - libc_cv_pie_default=yes + libc_cv_cc_pie_default=yes # explicitly set CFLAGS to use the full CFLAGS (not the reduced one for configure) make %{?_smp_mflags} #CFLAGS="$cflags" BUILD_CFLAGS="$cflags" cd .. -- 2.7.4