make sure the new gbuild system gets these flags too

f41
Caolán McNamara 14 years ago
parent f126d8e652
commit 263625b18d

@ -736,6 +736,17 @@ export QT4DIR=%{_qt4_prefix}
export KDE4DIR=%{_kde4_prefix} export KDE4DIR=%{_kde4_prefix}
export PATH=$QT4DIR/bin:$PATH export PATH=$QT4DIR/bin:$PATH
#use the RPM_OPT_FLAGS but remove the OOo overridden ones
for i in $RPM_OPT_FLAGS; do
case "$i" in
-O?|-pipe|-Wall|-g|-fexceptions) continue;;
esac
ARCH_FLAGS="$ARCH_FLAGS $i"
done
export ARCH_FLAGS
export CFLAGS=$ARCH_FLAGS
export CXXFLAGS=$ARCH_FLAGS
autoconf autoconf
%configure \ %configure \
--with-vendor="Red Hat, Inc." --with-num-cpus=$NBUILDS --with-max-jobs=$NDMAKES \ --with-vendor="Red Hat, Inc." --with-num-cpus=$NBUILDS --with-max-jobs=$NDMAKES \
@ -772,15 +783,6 @@ cp %{SOURCE30} ext_sources
cp %{SOURCE31} ext_sources cp %{SOURCE31} ext_sources
touch src.downloaded touch src.downloaded
#use the RPM_OPT_FLAGS but remove the OOo overridden ones
for i in $RPM_OPT_FLAGS; do
case "$i" in
-O?|-pipe|-Wall|-g|-fexceptions) continue;;
esac
ARCH_FLAGS="$ARCH_FLAGS $i"
done
export ARCH_FLAGS
. ./*[Ee]nv.[Ss]et.sh . ./*[Ee]nv.[Ss]et.sh
./bootstrap ./bootstrap

Loading…
Cancel
Save