- move add additional flags to CFLAGS to %configure

This commit is contained in:
Tomasz Kłoczko 2018-01-18 14:57:08 +00:00
parent 88944de3bb
commit f57a1fe65a
1 changed files with 1 additions and 1 deletions

View File

@ -88,7 +88,6 @@ rm -rf ./libedit
%build
export EDIT_CFLAGS=`pkg-config --cflags libedit`
export EDIT_LIBS=`pkg-config --libs libedit`
export CFLAGS="-fPIC %{optflags} -z now -fno-strict-aliasing"
# generate new configure script we need this since we removed the libedit directory
%{__libtoolize} --copy --force --automake
@ -99,6 +98,7 @@ export CFLAGS="-fPIC %{optflags} -z now -fno-strict-aliasing"
# libedit end
%configure \
CFLAGS="-fPIC %{optflags} -z now -fno-strict-aliasing" \
LDFLAGS="%{__global_ldflags} -Wl,--as-needed" \
--disable-dependency-tracking \
--disable-static \