apply ASLR options #1 63/144263/1 accepted/tizen/base/20170901.225346 submit/tizen_base/20170816.101104
authorDongHun Kwak <dh0128.kwak@samsung.com>
Wed, 16 Aug 2017 05:46:54 +0000 (14:46 +0900)
committerDongHun Kwak <dh0128.kwak@samsung.com>
Wed, 16 Aug 2017 05:46:54 +0000 (14:46 +0900)
[Model] All
[BinType] AP
[Customer] OPEN

[Issue#] N/A
[Request] N/A
[Occurrence Version] N/A

[Problem]
[Cause & Measure]
[Checking Method] N/A

[Team] Open Source Management and Setting Part
[Developer] dh0128.kwak
[Solution company] Samsung
[Change Type] N/A

Change-Id: Ia45c6006fdecd3ac382b1380480c2b5f35d181a8
Signed-off-by: DongHun Kwak <dh0128.kwak@samsung.com>
packaging/procps-ng.spec

index 6ba4a88..c539acd 100644 (file)
@@ -65,6 +65,8 @@ System and process monitoring utilities development headers
 cp %{SOURCE1001} .
 
 %build
+CFLAGS+=" -fPIE"
+LDFLAGS+=" -pie"
 %reconfigure --prefix=/ \
              --exec-prefix=/ \
              --docdir=/unwanted \
@@ -73,7 +75,7 @@ cp %{SOURCE1001} .
              --disable-kill \
              --disable-rpath
 
-make CFLAGS="%{optflags} -fPIE" LDFLAGS="-pie"
+make %{?_smp_mflags}
 
 %if %{tests_enabled}
 %check