From c4748e77d38883e3ec9f925a5528d0459d2a060b Mon Sep 17 00:00:00 2001 From: Slava Barinov Date: Tue, 27 Jul 2021 12:01:09 +0300 Subject: [PATCH] packaging: Add support for enable_static_pie project config macro This switch will turn on support for static PIE binaries build for glibc. Change-Id: I2ff4be151aafe91bbdc2a7ae9f89a11b54b106f5 Signed-off-by: Slava Barinov --- packaging/glibc.spec | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packaging/glibc.spec b/packaging/glibc.spec index ae62d02..0c1579b 100644 --- a/packaging/glibc.spec +++ b/packaging/glibc.spec @@ -404,6 +404,9 @@ profile="--disable-profile" %ifarch %{ix86} x86_64 --disable-mathvec \ %endif +%if 0%{?enable_static_pie} + --enable-static-pie \ +%endif } %{!?glibc_skip_make: -- 2.7.4