From 106a982104e16bfc2066f940317dc2f53f80225e Mon Sep 17 00:00:00 2001 From: "Ralf S. Engelschall" Date: Mon, 25 Nov 2002 14:16:17 +0000 Subject: [PATCH] make with_optimize=no use -O0, make threading optional --- gcc/gcc.spec | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/gcc/gcc.spec b/gcc/gcc.spec index 7534b181cb..a19d531f26 100644 --- a/gcc/gcc.spec +++ b/gcc/gcc.spec @@ -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}" \