- move add additional flags to CFLAGS to %configure
This commit is contained in:
parent
88944de3bb
commit
f57a1fe65a
@ -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 \
|
||||
|
Loading…
Reference in New Issue
Block a user