Преглед на файлове

cleanup again the build flags to 100% match those in the 'gcc' package

Ralf S. Engelschall преди 23 години
родител
ревизия
bb929f4f3f
променени са 2 файла, в които са добавени 17 реда и са изтрити 21 реда
  1. 9 11
      gcc32/gcc32.spec
  2. 8 10
      gcc33/gcc33.spec

+ 9 - 11
gcc32/gcc32.spec

@@ -38,7 +38,7 @@ Distribution: OpenPKG [PLUS]
 Group:        Language
 License:      GPL
 Version:      %{V_full}
-Release:      20030701
+Release:      20030702
 
 #   package options
 %option       with_cxx       yes
@@ -135,30 +135,28 @@ Provides:     gcc = %{version}-%{release}
         `find . -name Makefile -type f -print`
 
     #   determine build flags
-    l_boot_cflags=""
     l_cflags=""
+    l_boot_cflags=""
     l_libcflags="-g"
     l_libcxxflags="-g"
 %if "%{with_binutils}" == "yes"
     #   at least GNU as from GNU binutils supports -pipe always
-    l_cflags="$l_cflags -pipe"
-    l_libcflags="$l_libcflags -pipe"
+    l_boot_cflags="$l_boot_cflags -pipe"
     l_libcxxflags="$l_libcxxflags -pipe"
 %endif
 %if "%{with_optimize}" == "yes"
     #   conservatively optimize the generated program code
     #   (also _tune_ for particular CPUs, but _without_ requiring these CPUs!)
-    l_cflags="$l_cflags -O2 -fomit-frame-pointer -funroll-loops"
+    l_cflags="$l_cflags -O"
+    l_boot_cflags="$l_boot_cflags -O2 -fomit-frame-pointer -funroll-loops"
     case "%{l_target}" in
-        *x86-*     ) l_cflags="$l_cflags -mcpu=pentium3" ;;
-        *sparc64-* ) l_cflags="$l_cflags -mtune=v9"      ;;
+        *x86-*     ) l_boot_cflags="$l_boot_cflags -mcpu=pentium3" ;;
+        *sparc64-* ) l_boot_cflags="$l_boot_cflags -mtune=v9"      ;;
     esac
-    l_libcflags="$l_libcflags -O"
-    l_libcxxflags="$l_libcxxflags -O -fno-implicit-templates"
+    l_libcxxflags="$l_libcxxflags -O2 -fno-implicit-templates"
 %else
     #   else do no optimizations at all to reduce problems to minimum in advance
-    l_cflags="$l_cflags -O0"
-    l_libcflags="$l_libcflags -O0"
+    l_boot_cflags="$l_boot_cflags -O0"
     l_libcxxflags="$l_libcxxflags -O0"
 %endif
 

+ 8 - 10
gcc33/gcc33.spec

@@ -39,7 +39,7 @@ Distribution: OpenPKG [EVAL]
 Group:        Language
 License:      GPL
 Version:      %{V_full}s%{V_snap_comp}
-Release:      20030701
+Release:      20030702
 
 #   package options
 %option       with_cxx       yes
@@ -131,30 +131,28 @@ Provides:     gcc = %{version}-%{release}
         `find . -name Makefile -type f -print`
 
     #   determine build flags
-    l_boot_cflags=""
     l_cflags=""
+    l_boot_cflags=""
     l_libcflags="-g"
     l_libcxxflags="-g"
 %if "%{with_binutils}" == "yes"
     #   at least GNU as from GNU binutils supports -pipe always
-    l_cflags="$l_cflags -pipe"
-    l_libcflags="$l_libcflags -pipe"
+    l_boot_cflags="$l_boot_cflags -pipe"
     l_libcxxflags="$l_libcxxflags -pipe"
 %endif
 %if "%{with_optimize}" == "yes"
     #   conservatively optimize the generated program code
     #   (also _tune_ for particular CPUs, but _without_ requiring these CPUs!)
-    l_cflags="$l_cflags -O2 -fomit-frame-pointer -funroll-loops"
+    l_cflags="$l_cflags -O"
+    l_boot_cflags="$l_boot_cflags -O2 -fomit-frame-pointer -funroll-loops"
     case "%{l_target}" in
-        *x86-*     ) l_cflags="$l_cflags -mcpu=pentium3" ;;
-        *sparc64-* ) l_cflags="$l_cflags -mtune=v9"      ;;
+        *x86-*     ) l_boot_cflags="$l_boot_cflags -mcpu=pentium3" ;;
+        *sparc64-* ) l_boot_cflags="$l_boot_cflags -mtune=v9"      ;;
     esac
-    l_libcflags="$l_libcflags -O2"
     l_libcxxflags="$l_libcxxflags -O2 -fno-implicit-templates"
 %else
     #   else do no optimizations at all to reduce problems to minimum in advance
-    l_cflags="$l_cflags -O0"
-    l_libcflags="$l_libcflags -O0"
+    l_boot_cflags="$l_boot_cflags -O0"
     l_libcxxflags="$l_libcxxflags -O0"
 %endif