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 openpkg-web Date: 01-Jul-2003 15:28:50
Branch: HEAD Handle: 2003070114284901
Added files:
openpkg-src/gcc33 gcc33.patch
Modified files:
openpkg-src/gcc33 gcc33.spec
openpkg-web news.txt
Log:
finally fix the build flags handling; add partial patch from gcc
package
Summary:
Revision Changes Path
1.3 +20 -0 openpkg-src/gcc33/gcc33.patch
1.38 +9 -8 openpkg-src/gcc33/gcc33.spec
1.5119 +1 -0 openpkg-web/news.txt
____________________________________________________________________________
patch -p0 <<'@@ .'
Index: openpkg-src/gcc33/gcc33.patch
============================================================================
$ cvs diff -u -r0 -r1.3 gcc33.patch
--- /dev/null 2003-07-01 15:28:50.000000000 +0200
+++ gcc33.patch 2003-07-01 15:28:50.000000000 +0200
@@ -0,0 +1,20 @@
+--- config.guess.orig Thu Jan 30 23:32:36 2003
++++ config.guess Wed Feb 5 09:54:43 2003
+@@ -188,7 +188,7 @@
+ release='-gnu'
+ ;;
+ *)
+- release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'`
++ release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*//'`
+ ;;
+ esac
+ # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM:
+--- gcc/config/i386/sol2.h.dist Thu Feb 27 15:00:54 2003
++++ gcc/config/i386/sol2.h Thu Feb 27 14:20:50 2003
+@@ -160,3 +160,5 @@
+
+ /* The Solaris assembler does not support .quad. Do not use it. */
+ #undef ASM_QUAD
++#undef DEFAULT_PCC_STRUCT_RETURN
++#define DEFAULT_PCC_STRUCT_RETURN 1
+
@@ .
patch -p0 <<'@@ .'
Index: openpkg-src/gcc33/gcc33.spec
============================================================================
$ cvs diff -u -r1.37 -r1.38 gcc33.spec
--- openpkg-src/gcc33/gcc33.spec 30 Jun 2003 18:16:06 -0000 1.37
+++ openpkg-src/gcc33/gcc33.spec 1 Jul 2003 13:28:50 -0000 1.38
@@ -39,7 +39,7 @@
Group: Language
License: GPL
Version: %{V_full}s%{V_snap_comp}
-Release: 20030630
+Release: 20030701
# package options
%option with_cxx yes
@@ -50,6 +50,7 @@
# list of sources
Source0:
ftp://gcc.gnu.org/pub/gcc/snapshots/%{V_snap_dash}/gcc-%{V_snap_comp}.tar.bz2
+Patch0: gcc33.patch
# build information
Prefix: %{l_prefix}
@@ -72,6 +73,7 @@
%prep
%setup -q -n gcc-%{V_snap_comp}
+ %patch -p0
%{l_shtool} subst -v -s \
-e "s;PREFIX_INCLUDE_DIR;PREFIX_INCLUDE_DIR_DISABLED;g" \
gcc/configure
@@ -129,30 +131,29 @@
`find . -name Makefile -type f -print`
# determine build flags
- l_cflags=""
l_boot_cflags=""
+ l_cflags=""
l_libcflags="-g"
l_libcxxflags="-g"
%if "%{with_binutils}" == "yes"
# at least GNU as from GNU binutils supports -pipe always
- l_boot_cflags="$l_boot_cflags -pipe"
+ l_cflags="$l_cflags -pipe"
l_libcflags="$l_libcflags -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 -O"
- l_boot_cflags="$l_boot_cflags -O2 -fomit-frame-pointer -funroll-loops"
+ l_cflags="$l_cflags -O2 -fomit-frame-pointer -funroll-loops"
case "%{l_target}" in
- *x86-* ) l_boot_cflags="$l_boot_cflags -mcpu=pentium3" ;;
- *sparc64-* ) l_boot_cflags="$l_boot_cflags -mtune=v9" ;;
+ *x86-* ) l_cflags="$l_cflags -mcpu=pentium3" ;;
+ *sparc64-* ) l_cflags="$l_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_boot_cflags="$l_boot_cflags -O0"
+ l_cflags="$l_cflags -O0"
l_libcflags="$l_libcflags -O0"
l_libcxxflags="$l_libcxxflags -O0"
%endif
@@ .
patch -p0 <<'@@ .'
Index: openpkg-web/news.txt
============================================================================
$ cvs diff -u -r1.5118 -r1.5119 news.txt
--- openpkg-web/news.txt 1 Jul 2003 12:45:13 -0000 1.5118
+++ openpkg-web/news.txt 1 Jul 2003 13:28:49 -0000 1.5119
@@ -1,3 +1,4 @@
+01-Jul-2003: Upgraded package: P<gcc33-3.3.1s20030630-20030701>
01-Jul-2003: Upgraded package: P<ircd-2.10.3p3-20030701>
01-Jul-2003: Upgraded package: P<monit-3.2-20030701>
01-Jul-2003: Upgraded package: P<apache-1.3.27-20030701>
@@ .
______________________________________________________________________
The OpenPKG Project www.openpkg.org
CVS Repository Commit List [EMAIL PROTECTED]