mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2025-12-05 15:15:44 +00:00
Set CFLAGS_FOR_BUILD and CC for CdnX-builds.
This commit is contained in:
@@ -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} \
|
||||
|
||||
Reference in New Issue
Block a user