packaging: Apply ASLR feature 39/224039/1 accepted/tizen/unified/20200206.062622 submit/tizen/20200206.050846
authorJunghoon Kim <jhoon20.kim@samsung.com>
Thu, 6 Feb 2020 01:55:40 +0000 (10:55 +0900)
committerJunghoon Kim <jhoon20.kim@samsung.com>
Thu, 6 Feb 2020 01:55:40 +0000 (10:55 +0900)
Add PIE flags to apply the ASLR feature.

Change-Id: Id4271119fcf49bac01ab03597111affc39b12282
Signed-off-by: Junghoon Kim <jhoon20.kim@samsung.com>
packaging/btrfs-progs.spec

index 1eafff9..021089f 100644 (file)
@@ -24,6 +24,8 @@ Utilities needed to create and maintain btrfs file systems under Linux.
 cp %{SOURCE1001} .
 
 %build
+export CFLAGS="${CFLAGS} -fPIE"
+export LDFLAGS="${LDFLAGS} -pie"
 %autogen
 %configure --disable-documentation --disable-python --disable-zstd
 make %{?_smp_mflags}