|
@@ -26,8 +26,7 @@
|
|
|
# package version
|
|
# package version
|
|
|
%define V_full 3.4
|
|
%define V_full 3.4
|
|
|
%define V_comp 34
|
|
%define V_comp 34
|
|
|
-%define V_snap_dash 2003-07-02
|
|
|
|
|
-%define V_snap_comp 20030702
|
|
|
|
|
|
|
+%define V_snap 20030709
|
|
|
|
|
|
|
|
# package information
|
|
# package information
|
|
|
Name: gcc34
|
|
Name: gcc34
|
|
@@ -38,8 +37,8 @@ Packager: The OpenPKG Project
|
|
|
Distribution: OpenPKG [EVAL]
|
|
Distribution: OpenPKG [EVAL]
|
|
|
Group: Language
|
|
Group: Language
|
|
|
License: GPL
|
|
License: GPL
|
|
|
-Version: %{V_full}s%{V_snap_comp}
|
|
|
|
|
-Release: 20030708
|
|
|
|
|
|
|
+Version: %{V_full}s%{V_snap}
|
|
|
|
|
+Release: 20030710
|
|
|
|
|
|
|
|
# package options
|
|
# package options
|
|
|
%option with_cxx yes
|
|
%option with_cxx yes
|
|
@@ -49,7 +48,7 @@ Release: 20030708
|
|
|
%option with_gcc no
|
|
%option with_gcc no
|
|
|
|
|
|
|
|
# list of sources
|
|
# list of sources
|
|
|
-Source0: ftp://gcc.gnu.org/pub/gcc/snapshots/%{V_full}-%{V_snap_dash}/gcc-%{V_snap_comp}.tar.bz2
|
|
|
|
|
|
|
+Source0: ftp://gcc.gnu.org/pub/gcc/snapshots/%{V_full}-%{V_snap}/gcc-%{V_snap}.tar.bz2
|
|
|
Patch0: gcc34.patch
|
|
Patch0: gcc34.patch
|
|
|
|
|
|
|
|
# build information
|
|
# build information
|
|
@@ -72,7 +71,7 @@ Provides: gcc = %{version}-%{release}
|
|
|
highly portable ISO C and ISO C++ compiler.
|
|
highly portable ISO C and ISO C++ compiler.
|
|
|
|
|
|
|
|
%prep
|
|
%prep
|
|
|
- %setup -q -n gcc-%{V_snap_comp}
|
|
|
|
|
|
|
+ %setup -q -n gcc-%{V_snap}
|
|
|
%patch -p0
|
|
%patch -p0
|
|
|
%{l_shtool} subst -v -s \
|
|
%{l_shtool} subst -v -s \
|
|
|
-e "s;PREFIX_INCLUDE_DIR;PREFIX_INCLUDE_DIR_DISABLED;g" \
|
|
-e "s;PREFIX_INCLUDE_DIR;PREFIX_INCLUDE_DIR_DISABLED;g" \
|
|
@@ -109,10 +108,16 @@ Provides: gcc = %{version}-%{release}
|
|
|
l_enable_languages="${l_enable_languages},c++"
|
|
l_enable_languages="${l_enable_languages},c++"
|
|
|
%endif
|
|
%endif
|
|
|
|
|
|
|
|
|
|
+ # disable GNU iconv usage
|
|
|
|
|
+ ( echo "am_cv_func_iconv=no"
|
|
|
|
|
+ echo "am_cv_lib_iconv=no"
|
|
|
|
|
+ ) >config.cache
|
|
|
|
|
+
|
|
|
# configure the package
|
|
# configure the package
|
|
|
CC="%{l_cc}" \
|
|
CC="%{l_cc}" \
|
|
|
CFLAGS="%{l_cflags}" \
|
|
CFLAGS="%{l_cflags}" \
|
|
|
../configure \
|
|
../configure \
|
|
|
|
|
+ --cache-file=./config.cache \
|
|
|
--prefix=%{l_prefix} \
|
|
--prefix=%{l_prefix} \
|
|
|
--exec-prefix=%{l_prefix} \
|
|
--exec-prefix=%{l_prefix} \
|
|
|
--includedir=%{l_prefix}/include/gcc%{V_comp} \
|
|
--includedir=%{l_prefix}/include/gcc%{V_comp} \
|