Set CFLAGS_FOR_BUILD and CC for CdnX-builds.

This commit is contained in:
Ralf Corsepius
2008-03-18 05:39:21 +00:00
parent 368708b768
commit 18f7bf5aa0

View File

@@ -28,8 +28,12 @@
%if "%{_prefix}" != "/usr"
export PATH="%{_bindir}:${PATH}"
%endif
%if "%{_build}" != "%{_host}"
CFLAGS_FOR_BUILD="-g -O2 -Wall" \
CC="%{_host}-gcc ${RPM_OPT_FLAGS}" \
%else
CC="%{__cc} ${RPM_OPT_FLAGS}" \
%endif
../gcc-%{gcc_pkgvers}/configure \
--prefix=%{_prefix} \
--bindir=%{_bindir} \