Add options to build position-independent executables 31/190631/1 accepted/tizen/5.0/unified/20181102.030903 accepted/tizen/unified/20181005.013100 submit/tizen/20181004.085350 submit/tizen_5.0/20181101.000007
authorTomasz Swierczek <t.swierczek@samsung.com>
Thu, 4 Oct 2018 08:03:54 +0000 (10:03 +0200)
committerTomasz Swierczek <t.swierczek@samsung.com>
Thu, 4 Oct 2018 08:26:49 +0000 (10:26 +0200)
Change-Id: I8be9737c3ec3cf4a1954ecd71a3de30e72c46b56

packaging/nettle.spec

index 7db9eab..fc3343f 100644 (file)
@@ -61,7 +61,8 @@ operations using the nettle library.
 cp %{SOURCE1001} .
 
 %build
-export CFLAGS="$CFLAGS -std=c89"
+export CFLAGS="$CFLAGS -std=c89 -fPIE"
+export LDFLAGS="$LDFLAGS -pie"
 %if "%{asan}" == "1"
 %restore_fcommon
 %endif