summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--packaging/sed.spec3
1 files changed, 2 insertions, 1 deletions
diff --git a/packaging/sed.spec b/packaging/sed.spec
index 1df1565..34c87c4 100644
--- a/packaging/sed.spec
+++ b/packaging/sed.spec
@@ -23,7 +23,8 @@ cp %{SOURCE1001} .
%build
%define warn_flags -Wall -Wstrict-prototypes -Wpointer-arith -Wformat-security
-export CFLAGS="%{optflags} %warn_flags"
+export CFLAGS="%{optflags} %warn_flags -fPIC"
+export LDFLAGS=" -pie"
%configure --prefix=/usr \
--mandir=%{_mandir} \
--infodir=%{_infodir} \