summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--packaging/rpm.spec4
1 files changed, 2 insertions, 2 deletions
diff --git a/packaging/rpm.spec b/packaging/rpm.spec
index 4897db8a1..5463a376b 100644
--- a/packaging/rpm.spec
+++ b/packaging/rpm.spec
@@ -145,8 +145,8 @@ rm -f m4/lt*.m4
%build
CPPFLAGS="$CPPFLAGS `pkg-config --cflags nss`"
export CPPFLAGS
-export CFLAGS="%{optflags} -ffunction-sections"
-export LDFLAGS="${LDFLAGS} -Wl,-Bsymbolic-functions -ffunction-sections"
+export CFLAGS="%{optflags} -ffunction-sections -fPIE"
+export LDFLAGS="${LDFLAGS} -pie -Wl,-Bsymbolic-functions -ffunction-sections"
%ifarch armv5tel
export CFLAGS="-g -O0 -fno-strict-aliasing -ffunction-sections"
%endif