Set CFLAGS_FOR_BUILD and CC for CdnX-builds.

This commit is contained in:
Ralf Corsepius
2008-03-18 05:39:28 +00:00
parent c8ecbf9c1e
commit 9ee9a7d6a6

View File

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