From 3002eb50a8853b2844f89bd1b6cf160104bfb2b7 Mon Sep 17 00:00:00 2001 From: Tomasz Swierczek Date: Thu, 18 Oct 2018 07:06:26 +0200 Subject: [PATCH] Change compiler flag definition place to fix ASAN build break on ARM Change-Id: If814da44a445e1a602d08d9bd2ad03891c36e356 --- packaging/nettle.spec | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packaging/nettle.spec b/packaging/nettle.spec index fc3343f..41f3450 100644 --- a/packaging/nettle.spec +++ b/packaging/nettle.spec @@ -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 -- 2.7.4