spec: enables DEP for security reason
authorWonki Kim <wonki_.kim@samsung.com>
Wed, 19 Feb 2020 07:11:10 +0000 (16:11 +0900)
committerWonki Kim <wonki_.kim@samsung.com>
Tue, 3 Mar 2020 06:59:56 +0000 (15:59 +0900)
platform ldflags could contain a option to enable DEP.
however there is a chance that the flag doesn't contain it.
this patch appends a option to enable DEP explicitly.

Change-Id: Id9de352e63522c236af3169a6b0cc947bc24910c

packaging/aurum.spec

index 708bb1d..9f48865 100644 (file)
@@ -47,6 +47,8 @@ gRPC Server
 %setup -q
 cp %{SOURCE1001} .
 
+export LDFLAGS+="-Wl,-z,noexecstack"
+
 meson \
     --prefix /usr \
     --libdir %{_libdir} \