Apply ASLR to xdelta3 95/143995/1 accepted/tizen_4.0_unified accepted/tizen_5.0_unified accepted/tizen_5.5_unified accepted/tizen_5.5_unified_mobile_hotfix accepted/tizen_5.5_unified_wearable_hotfix accepted/tizen_6.0_unified accepted/tizen_6.0_unified_hotfix accepted/tizen_6.5_unified accepted/tizen_7.0_unified accepted/tizen_7.0_unified_hotfix accepted/tizen_8.0_unified accepted/tizen_9.0_unified accepted/tizen_unified tizen tizen_4.0 tizen_4.0_tv tizen_5.0 tizen_5.5 tizen_5.5_mobile_hotfix tizen_5.5_tv tizen_5.5_wearable_hotfix tizen_6.0 tizen_6.0_hotfix tizen_6.5 tizen_7.0 tizen_7.0_hotfix tizen_8.0 tizen_9.0 accepted/tizen/4.0/unified/20170828.221838 accepted/tizen/5.0/unified/20181102.030021 accepted/tizen/5.5/unified/20191031.014112 accepted/tizen/5.5/unified/mobile/hotfix/20201027.072034 accepted/tizen/5.5/unified/wearable/hotfix/20201027.104612 accepted/tizen/6.0/unified/20201030.103941 accepted/tizen/6.0/unified/hotfix/20201103.050139 accepted/tizen/6.5/unified/20211029.015448 accepted/tizen/7.0/unified/20221110.060648 accepted/tizen/7.0/unified/hotfix/20221116.111545 accepted/tizen/8.0/unified/20231005.095655 accepted/tizen/9.0/unified/20241030.232430 accepted/tizen/unified/20170818.083153 submit/tizen/20170817.080535 submit/tizen_4.0/20170828.100007 submit/tizen_5.0/20181101.000008 submit/tizen_5.5/20191031.000008 submit/tizen_5.5_mobile_hotfix/20201026.185108 submit/tizen_5.5_wearable_hotfix/20201026.184308 submit/tizen_6.0/20201029.205504 submit/tizen_6.0_hotfix/20201102.192904 submit/tizen_6.0_hotfix/20201103.115104 submit/tizen_6.5/20211028.163901 tizen_4.0.IoT.p1_release tizen_4.0.IoT.p2_release tizen_4.0.m2_release tizen_5.5.m2_release tizen_6.0.m2_release tizen_6.5.m2_release tizen_7.0_m2_release tizen_8.0_m2_release tizen_9.0_m2_release
authorMyungki Lee <mk5004.lee@samsung.com>
Mon, 14 Aug 2017 07:23:57 +0000 (16:23 +0900)
committerMyungki Lee <mk5004.lee@samsung.com>
Mon, 14 Aug 2017 07:23:57 +0000 (16:23 +0900)
Change-Id: I2d35c1b8d6b48f44538059a08161ea9e0bff8ec3
Signed-off-by: Myungki Lee <mk5004.lee@samsung.com>
packaging/xdelta3.spec

index 2063764..b81515a 100644 (file)
@@ -28,14 +28,20 @@ develop applications that use xdelta3.
 %setup -q
 
 %build
+export CFLAGS="$CFLAGS -fPIE"
+export CXXFLAGS="$CXXFLAGS -fPIE"
+export LDFLAGS
 cp %{SOURCE1} .
 libtoolize -c -f
 aclocal
 autoheader
 autoconf
 automake -a -c
-./configure --prefix="/usr"
-make %{?jobs:-j%jobs} xdelta3
+%configure \
+       --prefix="/usr" \
+       LDFLAGS="$LDFLAGS -pie"
+
+make %{?jobs:-j%jobs}
 
 %install
 rm -rf %{buildroot}