packaging: Turning on PIE compilation by default
authorSlava Barinov <v.barinov@samsung.com>
Wed, 5 Feb 2020 11:20:41 +0000 (14:20 +0300)
committerDongkyun Son <dongkyun.s@samsung.com>
Tue, 5 Mar 2024 09:00:16 +0000 (18:00 +0900)
This makes all glibc internal tools (like getent) pie.

Change-Id: I134ec4c1d858397597d51411ed0073cb7330dc74
Signed-off-by: Slava Barinov <v.barinov@samsung.com>
packaging/glibc.spec

index f942f4d..ef49164 100644 (file)
@@ -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 ..