|
|
@@ -38,6 +38,9 @@
|
|
|
%ifndef with_binutils
|
|
|
%define with_binutils %(if [ -f %{SOURCE gcc.sh} ]; then sh %{SOURCE gcc.sh} require-binutils %{l_target}; else echo "no"; fi)
|
|
|
%endif
|
|
|
+%ifndef with_threads
|
|
|
+%define with_threads yes
|
|
|
+%endif
|
|
|
|
|
|
# package information
|
|
|
Name: gcc
|
|
|
@@ -49,7 +52,7 @@ Distribution: OpenPKG [CORE]
|
|
|
Group: Language
|
|
|
License: GPL
|
|
|
Version: %{V_short}
|
|
|
-Release: 20021120
|
|
|
+Release: 20021125
|
|
|
|
|
|
# list of sources
|
|
|
Source0: ftp://gcc.gnu.org/pub/gcc/releases/gcc-%{V_long}/gcc-%{V_long}.tar.bz2
|
|
|
@@ -76,6 +79,7 @@ AutoReqProv: no
|
|
|
--define 'with_cxx %{with_cxx}' \
|
|
|
--define 'with_optimize %{with_optimize}' \
|
|
|
--define 'with_binutils %{with_binutils}' \
|
|
|
+ --define 'with_threads %{with_threads}' \
|
|
|
|
|
|
%prep
|
|
|
%setup -q -n gcc-%{V_long}
|
|
|
@@ -105,7 +109,11 @@ AutoReqProv: no
|
|
|
%else
|
|
|
--enable-languages="c" \
|
|
|
%endif
|
|
|
- --enable-threads \
|
|
|
+%if "%{with_threads}" == "yes"
|
|
|
+ --enable-threads=posix \
|
|
|
+%else
|
|
|
+ --enable-threads=single \
|
|
|
+%endif
|
|
|
--disable-maintainer-mode \
|
|
|
--disable-shared \
|
|
|
--disable-nls \
|
|
|
@@ -125,10 +133,10 @@ AutoReqProv: no
|
|
|
*-osf* ) l_boot_cflags="-O" ;;
|
|
|
esac
|
|
|
%else
|
|
|
- l_boot_cflags=""
|
|
|
+ l_boot_cflags="-O0"
|
|
|
l_cflags=""
|
|
|
- l_libcflags="-g"
|
|
|
- l_libcxxflags="-g"
|
|
|
+ l_libcflags="-g -O0"
|
|
|
+ l_libcxxflags="-g -O0"
|
|
|
%endif
|
|
|
%{l_make} %{l_mflags} \
|
|
|
MAKE="%{l_make} %{l_mflags}" \
|