OpenPKG CVS Repository
http://cvs.openpkg.org/
____________________________________________________________________________
Server: cvs.openpkg.org Name: Ralf S. Engelschall
Root: /e/openpkg/cvs Email: [EMAIL PROTECTED]
Module: openpkg-src Date: 01-Jul-2003 17:04:51
Branch: HEAD Handle: 2003070116045000
Modified files:
openpkg-src/gcc gcc.spec
Log:
Unfortunately, the GCC documentation and the implementation diverge
dramatically: BOOT_CFLAGS is not for stage1 (booting), but for stage2,
stage3, etc. And LIBCFLAGS are used for libiberty, but no BOOT_LIBCFLAGS
exists (BOOT_LIBCXXFLAGS are not required, btw). To allow GCC to build
correctly with a non-GCC vendor compiler, we no longer set LIBCFLAGS
at all (because libiberity build would fail) and we use CFLAGS for the
stage1 and BOOT_CFLAGS for stage2, stage3, etc.
So, beastie GCC, DWIM now, please!
Summary:
Revision Changes Path
1.57 +7 -9 openpkg-src/gcc/gcc.spec
____________________________________________________________________________
patch -p0 <<'@@ .'
Index: openpkg-src/gcc/gcc.spec
============================================================================
$ cvs diff -u -r1.56 -r1.57 gcc.spec
--- openpkg-src/gcc/gcc.spec 1 Jul 2003 13:30:23 -0000 1.56
+++ openpkg-src/gcc/gcc.spec 1 Jul 2003 15:04:50 -0000 1.57
@@ -135,30 +135,28 @@
`find . -name Makefile -type f -print`
# determine build flags
- l_boot_cflags=""
l_cflags=""
+ l_boot_cflags=""
l_libcflags="-g"
l_libcxxflags="-g"
%if "%{with_binutils}" == "yes"
# at least GNU as from GNU binutils supports -pipe always
- l_cflags="$l_cflags -pipe"
- l_libcflags="$l_libcflags -pipe"
+ l_boot_cflags="$l_boot_cflags -pipe"
l_libcxxflags="$l_libcxxflags -pipe"
%endif
%if "%{with_optimize}" == "yes"
# conservatively optimize the generated program code
# (also _tune_ for particular CPUs, but _without_ requiring these CPUs!)
- l_cflags="$l_cflags -O2 -fomit-frame-pointer -funroll-loops"
+ l_cflags="$l_cflags -O"
+ l_boot_cflags="$l_boot_cflags -O2 -fomit-frame-pointer -funroll-loops"
case "%{l_target}" in
- *x86-* ) l_cflags="$l_cflags -mcpu=pentium3" ;;
- *sparc64-* ) l_cflags="$l_cflags -mtune=v9" ;;
+ *x86-* ) l_boot_cflags="$l_boot_cflags -mcpu=pentium3" ;;
+ *sparc64-* ) l_boot_cflags="$l_boot_cflags -mtune=v9" ;;
esac
- l_libcflags="$l_libcflags -O2"
l_libcxxflags="$l_libcxxflags -O2 -fno-implicit-templates"
%else
# else do no optimizations at all to reduce problems to minimum in advance
- l_cflags="$l_cflags -O0"
- l_libcflags="$l_libcflags -O0"
+ l_boot_cflags="$l_boot_cflags -O0"
l_libcxxflags="$l_libcxxflags -O0"
%endif
@@ .
______________________________________________________________________
The OpenPKG Project www.openpkg.org
CVS Repository Commit List [EMAIL PROTECTED]