|
|
|
@ -23,7 +23,7 @@
|
|
|
|
|
## |
|
|
|
|
|
|
|
|
|
# package version |
|
|
|
|
%define V_full 3.4.4 |
|
|
|
|
%define V_full 4.0.1 |
|
|
|
|
%define V_comp %nil |
|
|
|
|
|
|
|
|
|
# package information |
|
|
|
@ -43,7 +43,7 @@ Release: 20050920
|
|
|
|
|
%option with_cxx yes |
|
|
|
|
%option with_objc no |
|
|
|
|
%option with_java no |
|
|
|
|
%option with_f77 no |
|
|
|
|
%option with_fortran no |
|
|
|
|
%option with_optimize yes |
|
|
|
|
%option with_profile no |
|
|
|
|
%option with_binutils yes |
|
|
|
@ -63,6 +63,10 @@ PreReq: OpenPKG, openpkg >= 20040130
|
|
|
|
|
BuildPreReq: binutils >= 2.14 |
|
|
|
|
PreReq: binutils >= 2.14 |
|
|
|
|
%endif |
|
|
|
|
%if "%{with_fortran}" == "yes" |
|
|
|
|
BuildPreReq: mpfr |
|
|
|
|
PreReq: mpfr |
|
|
|
|
%endif |
|
|
|
|
%if "%{with_java}" == "yes" |
|
|
|
|
BuildPreReq: zlib |
|
|
|
|
PreReq: zlib |
|
|
|
@ -81,7 +85,7 @@ Provides: gcc = %{version}-%{release}
|
|
|
|
|
prog gcc = { |
|
|
|
|
version = %{version} |
|
|
|
|
url = ftp://gcc.gnu.org/pub/gcc/releases/ |
|
|
|
|
regex = (3(\.\d+)+) |
|
|
|
|
regex = (4\.0(\.\d+)?) |
|
|
|
|
url = ftp://gcc.gnu.org/pub/gcc/releases/gcc-__NEWVER__/ |
|
|
|
|
regex = gcc-(__VER__)\.tar\.bz2 |
|
|
|
|
} |
|
|
|
@ -96,6 +100,9 @@ Provides: gcc = %{version}-%{release}
|
|
|
|
|
-e 's;\(version_string\[\] = "[^"]*\);\1 (%{l_openpkg_release -F "OpenPKG-%%s"});' \ |
|
|
|
|
-e 's;\(bug_report_url\[\] = "\)[^"]*;\1<URL:http://www.openpkg.org/>;' \ |
|
|
|
|
gcc/version.c |
|
|
|
|
%{l_shtool} subst -v -s \ |
|
|
|
|
-e 's;(libdir)/gcc/;(libdir)/gcc%{V_comp}/;' \ |
|
|
|
|
`find . -name Makefile.in -type f -print` |
|
|
|
|
case "%{l_platform -t}" in |
|
|
|
|
amd64*-linux* ) |
|
|
|
|
%{l_shtool} subst \ |
|
|
|
@ -146,8 +153,8 @@ Provides: gcc = %{version}-%{release}
|
|
|
|
|
%if "%{with_java}" == "yes" |
|
|
|
|
l_enable_languages="${l_enable_languages},java" |
|
|
|
|
%endif |
|
|
|
|
%if "%{with_f77}" == "yes" |
|
|
|
|
l_enable_languages="${l_enable_languages},f77" |
|
|
|
|
%if "%{with_fortran}" == "yes" |
|
|
|
|
l_enable_languages="${l_enable_languages},f95" |
|
|
|
|
%endif |
|
|
|
|
|
|
|
|
|
# disable GNU iconv usage |
|
|
|
@ -182,11 +189,6 @@ Provides: gcc = %{version}-%{release}
|
|
|
|
|
%endif |
|
|
|
|
${l_with_gnu_ld_as} |
|
|
|
|
|
|
|
|
|
# explicitly redirect remaining gcc library directories |
|
|
|
|
%{l_shtool} subst -v -s \ |
|
|
|
|
-e "s;(libdir)/gcc/;(libdir)/gcc%{V_comp}/;" \ |
|
|
|
|
`find . -name Makefile -type f -print` |
|
|
|
|
|
|
|
|
|
# determine build flags |
|
|
|
|
l_ccisgcc=no |
|
|
|
|
if [ ".`(%{l_cc} -v; %{l_cc} --version) </dev/null 2>&1 | grep -i 'gcc'`" != . ]; then |
|
|
|
@ -208,7 +210,7 @@ Provides: gcc = %{version}-%{release}
|
|
|
|
|
# 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_boot_cflags="$l_boot_cflags -O2 -fomit-frame-pointer" |
|
|
|
|
case "%{l_platform -t}" in |
|
|
|
|
*i?86-* ) l_boot_cflags="$l_boot_cflags -mtune=pentium3" ;; |
|
|
|
|
*sun4u-* ) l_boot_cflags="$l_boot_cflags -mtune=v9" ;; |
|
|
|
|