Change compiler flag definition place to fix ASAN build break on ARM 38/191538/1 accepted/tizen_unified tizen accepted/tizen/unified/20181105.062416 submit/tizen/20181101.061154 submit/tizen/20181101.232310
authorTomasz Swierczek <t.swierczek@samsung.com>
Thu, 18 Oct 2018 05:06:26 +0000 (07:06 +0200)
committerTomasz Swierczek <t.swierczek@samsung.com>
Thu, 18 Oct 2018 05:56:29 +0000 (07:56 +0200)
Change-Id: If814da44a445e1a602d08d9bd2ad03891c36e356

packaging/nettle.spec

index fc3343f..41f3450 100644 (file)
@@ -61,11 +61,11 @@ operations using the nettle library.
 cp %{SOURCE1001} .
 
 %build
-export CFLAGS="$CFLAGS -std=c89 -fPIE"
-export LDFLAGS="$LDFLAGS -pie"
 %if "%{asan}" == "1"
 %restore_fcommon
 %endif
+export LDFLAGS="$LDFLAGS -pie"
+export CFLAGS="$CFLAGS -std=c89 -fPIE"
 #configure --disable-static
 %configure --enable-shared