|
|
@@ -33,17 +33,19 @@ Distribution: OpenPKG [CORE]
|
|
|
Group: Language
|
|
|
License: GPL
|
|
|
Version: 3.2.3
|
|
|
-Release: 20030422
|
|
|
+Release: 20030427
|
|
|
|
|
|
# package options
|
|
|
%option with_cxx yes
|
|
|
%option with_optimize yes
|
|
|
%option with_binutils yes
|
|
|
%option with_threads yes
|
|
|
+%option with_bounds no
|
|
|
|
|
|
# list of sources
|
|
|
Source0: ftp://gcc.gnu.org/pub/gcc/releases/gcc-%{version}/gcc-%{version}.tar.bz2
|
|
|
Patch0: gcc.patch
|
|
|
+Patch1: http://web.inter.nl.net/hcc/Haj.Ten.Brugge/bounds-checking-gcc-%{version}-1.00.patch.bz2
|
|
|
|
|
|
# build information
|
|
|
Prefix: %{l_prefix}
|
|
|
@@ -63,7 +65,13 @@ AutoReqProv: no
|
|
|
|
|
|
%prep
|
|
|
%setup -q -n gcc-%{version}
|
|
|
- %patch -p0
|
|
|
+ %patch0 -p0
|
|
|
+%if "%{with_bounds}" == "yes"
|
|
|
+ %patch1 -p1
|
|
|
+ %{l_shtool} subst -v -s \
|
|
|
+ -e 's; $(libsubdir); $(DESTDIR)$(libsubdir);g' \
|
|
|
+ gcc/Makefile.in
|
|
|
+%endif
|
|
|
%{l_shtool} subst -v -s \
|
|
|
-e "s;PREFIX_INCLUDE_DIR;PREFIX_INCLUDE_DIR_DISABLED;g" \
|
|
|
gcc/configure
|