summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsungrae jo <seongrae.jo@samsung.com>2021-05-24 16:10:02 +0900
committersungrae jo <seongrae.jo@samsung.com>2021-05-24 16:10:02 +0900
commitef4fde904b636b25b94191c67d513d4f9ea89407 (patch)
treee839d513acaf79bb505e7b0affd1d014d949d3d4
parent840e4c1726e57f8a645212c107b769d930e6d734 (diff)
downloadlibtar-ef4fde904b636b25b94191c67d513d4f9ea89407.tar.gz
libtar-ef4fde904b636b25b94191c67d513d4f9ea89407.tar.bz2
libtar-ef4fde904b636b25b94191c67d513d4f9ea89407.zip
Add ASLR option
Signed-off-by: sungrae jo <seongrae.jo@samsung.com>
-rw-r--r--packaging/libtar.spec4
1 files changed, 4 insertions, 0 deletions
diff --git a/packaging/libtar.spec b/packaging/libtar.spec
index 6c05aee..743481d 100644
--- a/packaging/libtar.spec
+++ b/packaging/libtar.spec
@@ -37,6 +37,10 @@ cp %{SOURCE1001} .
# how to actually build the software we are packaging
# ==========================================================
%build
+export CFLAGS="$CFLAGS -Wall -fPIE"
+export CXXFLAGS="$CXXFLAGS -Wall -fPIE"
+export LDFLAGS="$LDFLAGS -Wl,--as-needed -pie"
+
aclocal
autoreconf -fvi
%{configure}