diff options
author | Ralf Corsepius <ralf.corsepius@rtems.org> | 2008-03-18 05:39:21 +0000 |
---|---|---|
committer | Ralf Corsepius <ralf.corsepius@rtems.org> | 2008-03-18 05:39:21 +0000 |
commit | 18f7bf5aa03810c24b44ae6a5a589387e7b9c538 (patch) | |
tree | e4bcbe0c0b67fb293cf634709002c7ff1e301699 /contrib/crossrpms/gcc | |
parent | BR: @rpmprefix@@tool_target@-gcc and @rpmprefix@%{_host}-gcc for CdnX-builds. (diff) | |
download | rtems-18f7bf5aa03810c24b44ae6a5a589387e7b9c538.tar.bz2 |
Set CFLAGS_FOR_BUILD and CC for CdnX-builds.
Diffstat (limited to 'contrib/crossrpms/gcc')
-rw-r--r-- | contrib/crossrpms/gcc/build.add | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/contrib/crossrpms/gcc/build.add b/contrib/crossrpms/gcc/build.add index d12fc1e1c6..09f3420891 100644 --- a/contrib/crossrpms/gcc/build.add +++ b/contrib/crossrpms/gcc/build.add @@ -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} \ |