|
|
@@ -37,7 +37,7 @@ Distribution: OpenPKG [REL]
|
|
|
Group: Language
|
|
|
License: GPL
|
|
|
Version: %{V_short}
|
|
|
-Release: 20020518
|
|
|
+Release: 20020605
|
|
|
|
|
|
# list of sources
|
|
|
Source0: ftp://gcc.gnu.org/pub/gcc/releases/gcc-%{V_long}/gcc-%{V_long}.tar.bz2
|
|
|
@@ -84,11 +84,19 @@ AutoReqProv: no
|
|
|
$options
|
|
|
|
|
|
# build the package
|
|
|
+ l_boot_cflags="-O2"
|
|
|
+ l_cflags="-O"
|
|
|
+ l_libcflags="-g -O2"
|
|
|
+ l_libcxxflags="-g -O2 -fno-implicit-templates"
|
|
|
+ case "%{l_target}" in
|
|
|
+ *-osf* ) l_boot_cflags="-O" ;;
|
|
|
+ esac
|
|
|
%{l_make} %{l_mflags} \
|
|
|
MAKE="%{l_make} %{l_mflags}" \
|
|
|
- CFLAGS='-O' \
|
|
|
- LIBCFLAGS='-g -O2' \
|
|
|
- LIBCXXFLAGS='-g -O2 -fno-implicit-templates' \
|
|
|
+ BOOT_CFLAGS="$l_boot_cflags" \
|
|
|
+ CFLAGS="$l_cflags" \
|
|
|
+ LIBCFLAGS="$l_libcflags" \
|
|
|
+ LIBCXXFLAGS="$l_libcxxflags" \
|
|
|
bootstrap-lean
|
|
|
|
|
|
%install
|