[rtems-crossrpms commit] Regenerate.
Ralf Corsepius
ralf at rtems.org
Thu May 8 11:04:59 UTC 2014
Module: rtems-crossrpms
Branch: master
Commit: 2615bbd602baeadcd60297cbfe3c5d0086a7134a
Changeset: http://git.rtems.org/rtems-crossrpms/commit/?id=2615bbd602baeadcd60297cbfe3c5d0086a7134a
Author: Ralf Corsépius <ralf.corsepius at rtems.org>
Date: Sat Feb 8 07:41:33 2014 +0100
Regenerate.
---
.../arm/rtems-4.11-arm-rtems4.11-binutils.spec | 6 +++++-
rtems4.11/arm/rtems-4.11-arm-rtems4.11-gcc.spec | 8 +++++++-
rtems4.11/arm/rtems-4.11-arm-rtems4.11-gdb.spec | 6 +++++-
.../avr/rtems-4.11-avr-rtems4.11-binutils.spec | 6 +++++-
rtems4.11/avr/rtems-4.11-avr-rtems4.11-gcc.spec | 8 +++++++-
rtems4.11/avr/rtems-4.11-avr-rtems4.11-gdb.spec | 6 +++++-
.../bfin/rtems-4.11-bfin-rtems4.11-binutils.spec | 6 +++++-
rtems4.11/bfin/rtems-4.11-bfin-rtems4.11-gcc.spec | 8 +++++++-
rtems4.11/bfin/rtems-4.11-bfin-rtems4.11-gdb.spec | 6 +++++-
.../h8300/rtems-4.11-h8300-rtems4.11-binutils.spec | 6 +++++-
.../h8300/rtems-4.11-h8300-rtems4.11-gcc.spec | 8 +++++++-
.../h8300/rtems-4.11-h8300-rtems4.11-gdb.spec | 6 +++++-
.../i386/rtems-4.11-i386-rtems4.11-binutils.spec | 6 +++++-
rtems4.11/i386/rtems-4.11-i386-rtems4.11-gcc.spec | 8 +++++++-
rtems4.11/i386/rtems-4.11-i386-rtems4.11-gdb.spec | 6 +++++-
.../lm32/rtems-4.11-lm32-rtems4.11-binutils.spec | 6 +++++-
rtems4.11/lm32/rtems-4.11-lm32-rtems4.11-gcc.spec | 8 +++++++-
rtems4.11/lm32/rtems-4.11-lm32-rtems4.11-gdb.spec | 6 +++++-
.../m32c/rtems-4.11-m32c-rtems4.11-binutils.spec | 6 +++++-
rtems4.11/m32c/rtems-4.11-m32c-rtems4.11-gcc.spec | 8 +++++++-
rtems4.11/m32c/rtems-4.11-m32c-rtems4.11-gdb.spec | 6 +++++-
.../m32r/rtems-4.11-m32r-rtems4.11-binutils.spec | 6 +++++-
rtems4.11/m32r/rtems-4.11-m32r-rtems4.11-gcc.spec | 8 +++++++-
rtems4.11/m32r/rtems-4.11-m32r-rtems4.11-gdb.spec | 6 +++++-
.../m68k/rtems-4.11-m68k-rtems4.11-binutils.spec | 6 +++++-
rtems4.11/m68k/rtems-4.11-m68k-rtems4.11-gcc.spec | 8 +++++++-
rtems4.11/m68k/rtems-4.11-m68k-rtems4.11-gdb.spec | 6 +++++-
.../rtems-4.11-microblaze-rtems4.11-binutils.spec | 6 +++++-
.../rtems-4.11-microblaze-rtems4.11-gcc.spec | 8 +++++++-
.../rtems-4.11-microblaze-rtems4.11-gdb.spec | 6 +++++-
.../mips/rtems-4.11-mips-rtems4.11-binutils.spec | 6 +++++-
rtems4.11/mips/rtems-4.11-mips-rtems4.11-gcc.spec | 8 +++++++-
rtems4.11/mips/rtems-4.11-mips-rtems4.11-gdb.spec | 6 +++++-
.../rtems-4.11-mipstx39-rtems4.11-gdb.spec | 6 +++++-
.../rtems-4.11-powerpc-rtems4.11-binutils.spec | 6 +++++-
.../powerpc/rtems-4.11-powerpc-rtems4.11-gcc.spec | 8 +++++++-
.../powerpc/rtems-4.11-powerpc-rtems4.11-gdb.spec | 6 +++++-
rtems4.11/sh/rtems-4.11-sh-rtems4.11-binutils.spec | 6 +++++-
rtems4.11/sh/rtems-4.11-sh-rtems4.11-gcc.spec | 8 +++++++-
rtems4.11/sh/rtems-4.11-sh-rtems4.11-gdb.spec | 6 +++++-
.../sparc/rtems-4.11-sparc-rtems4.11-binutils.spec | 6 +++++-
.../sparc/rtems-4.11-sparc-rtems4.11-gcc.spec | 8 +++++++-
.../sparc/rtems-4.11-sparc-rtems4.11-gdb.spec | 6 +++++-
.../rtems-4.11-sparc64-rtems4.11-binutils.spec | 6 +++++-
.../sparc64/rtems-4.11-sparc64-rtems4.11-gcc.spec | 8 +++++++-
.../sparc64/rtems-4.11-sparc64-rtems4.11-gdb.spec | 6 +++++-
.../v850/rtems-4.11-v850-rtems4.11-binutils.spec | 6 +++++-
rtems4.11/v850/rtems-4.11-v850-rtems4.11-gcc.spec | 8 +++++++-
rtems4.11/v850/rtems-4.11-v850-rtems4.11-gdb.spec | 6 +++++-
49 files changed, 277 insertions(+), 49 deletions(-)
diff --git a/rtems4.11/arm/rtems-4.11-arm-rtems4.11-binutils.spec b/rtems4.11/arm/rtems-4.11-arm-rtems4.11-binutils.spec
index d6b7c97..77055d9 100644
--- a/rtems4.11/arm/rtems-4.11-arm-rtems4.11-binutils.spec
+++ b/rtems4.11/arm/rtems-4.11-arm-rtems4.11-binutils.spec
@@ -28,8 +28,12 @@
%endif
%ifos cygwin cygwin32
+%if "%{_host}" == "x86_64-pc-cygwin"
+%define optflags -O2 -pipe
+%else
%define optflags -O3 -pipe -march=i486 -funroll-loops
%endif
+%endif
%ifos mingw mingw32
%if %{defined _mingw32_cflags}
@@ -188,7 +192,7 @@ sed -e 's,^\s*/usr/lib/rpm.*/brp-strip,./brp-strip,' \
%define __os_install_post . ./os_install_post
%clean
- rm -rf $RPM_BUILD_ROOT
+ %{?el5:rm -rf $RPM_BUILD_ROOT}
# ==============================================================
# arm-rtems4.11-binutils
diff --git a/rtems4.11/arm/rtems-4.11-arm-rtems4.11-gcc.spec b/rtems4.11/arm/rtems-4.11-arm-rtems4.11-gcc.spec
index 36c42b6..a3ad14a 100644
--- a/rtems4.11/arm/rtems-4.11-arm-rtems4.11-gcc.spec
+++ b/rtems4.11/arm/rtems-4.11-arm-rtems4.11-gcc.spec
@@ -28,8 +28,12 @@
%endif
%ifos cygwin cygwin32
+%if "%{_host}" == "x86_64-pc-cygwin"
+%define optflags -O2 -pipe
+%else
%define optflags -O3 -pipe -march=i486 -funroll-loops
%endif
+%endif
%ifos mingw mingw32
%if %{defined _mingw32_cflags}
@@ -419,6 +423,7 @@ echo "RTEMS gcc-%{gcc_version}-3%{?dist}/newlib-%{newlib_version}-29%{?dist}" >
--enable-threads \
%{?with_lto:--enable-lto}%{!?with_lto:--disable-lto} \
%{?with_plugin:--enable-plugin}%{!?with_plugin:--disable-plugin} \
+ %{?gcc_options:%gcc_options} \
--enable-newlib-io-c99-formats \
%{?with_iconv:--enable-newlib-iconv} \
--enable-languages="$languages"
@@ -565,6 +570,7 @@ echo "RTEMS gcc-%{gcc_version}-3%{?dist}/newlib-%{newlib_version}-29%{?dist}" >
%{!?with_pygdb:*/libstdc++*gdb.py*) rm ${RPM_BUILD_ROOT}/$i ;;} # ignore for now
%{?with_pygdb:*/libstdc++*gdb.py*) >> build/files.g++ ;;}
*/libstdc++.*) echo "$i" >> build/files.g++ ;;
+ */cygstdc++*.dll) echo "$i" >> build/files.g++ ;;
*/libsupc++.*) echo "$i" >> build/files.g++ ;;
*) echo "$i" >> build/files.gcc ;;
esac
@@ -650,7 +656,7 @@ sed -e 's,^[ ]*/usr/lib/rpm/find-debuginfo.sh,./find-debuginfo.sh,' \
%endif
%clean
- rm -rf $RPM_BUILD_ROOT
+ %{?el5:rm -rf $RPM_BUILD_ROOT}
# ==============================================================
# rtems-4.11-arm-rtems4.11-gcc
diff --git a/rtems4.11/arm/rtems-4.11-arm-rtems4.11-gdb.spec b/rtems4.11/arm/rtems-4.11-arm-rtems4.11-gdb.spec
index d0e8a27..2ffffa7 100644
--- a/rtems4.11/arm/rtems-4.11-arm-rtems4.11-gdb.spec
+++ b/rtems4.11/arm/rtems-4.11-arm-rtems4.11-gdb.spec
@@ -28,8 +28,12 @@
%endif
%ifos cygwin cygwin32
+%if "%{_host}" == "x86_64-pc-cygwin"
+%define optflags -O2 -pipe
+%else
%define optflags -O3 -pipe -march=i486 -funroll-loops
%endif
+%endif
%ifos mingw mingw32
%if %{defined _mingw32_cflags}
@@ -247,7 +251,7 @@ sed -e 's,^\s*/usr/lib/rpm.*/brp-strip,./brp-strip,' \
%define __os_install_post . ./os_install_post
%clean
- rm -rf $RPM_BUILD_ROOT
+ %{?el5:rm -rf $RPM_BUILD_ROOT}
# ==============================================================
# arm-rtems4.11-gdb
diff --git a/rtems4.11/avr/rtems-4.11-avr-rtems4.11-binutils.spec b/rtems4.11/avr/rtems-4.11-avr-rtems4.11-binutils.spec
index 255ef86..2624079 100644
--- a/rtems4.11/avr/rtems-4.11-avr-rtems4.11-binutils.spec
+++ b/rtems4.11/avr/rtems-4.11-avr-rtems4.11-binutils.spec
@@ -28,8 +28,12 @@
%endif
%ifos cygwin cygwin32
+%if "%{_host}" == "x86_64-pc-cygwin"
+%define optflags -O2 -pipe
+%else
%define optflags -O3 -pipe -march=i486 -funroll-loops
%endif
+%endif
%ifos mingw mingw32
%if %{defined _mingw32_cflags}
@@ -186,7 +190,7 @@ sed -e 's,^\s*/usr/lib/rpm.*/brp-strip,./brp-strip,' \
%define __os_install_post . ./os_install_post
%clean
- rm -rf $RPM_BUILD_ROOT
+ %{?el5:rm -rf $RPM_BUILD_ROOT}
# ==============================================================
# avr-rtems4.11-binutils
diff --git a/rtems4.11/avr/rtems-4.11-avr-rtems4.11-gcc.spec b/rtems4.11/avr/rtems-4.11-avr-rtems4.11-gcc.spec
index f8b3ea8..9e53971 100644
--- a/rtems4.11/avr/rtems-4.11-avr-rtems4.11-gcc.spec
+++ b/rtems4.11/avr/rtems-4.11-avr-rtems4.11-gcc.spec
@@ -28,8 +28,12 @@
%endif
%ifos cygwin cygwin32
+%if "%{_host}" == "x86_64-pc-cygwin"
+%define optflags -O2 -pipe
+%else
%define optflags -O3 -pipe -march=i486 -funroll-loops
%endif
+%endif
%ifos mingw mingw32
%if %{defined _mingw32_cflags}
@@ -411,6 +415,7 @@ echo "RTEMS gcc-%{gcc_version}-4%{?dist}/newlib-%{newlib_version}-26%{?dist}" >
--enable-threads \
%{?with_lto:--enable-lto}%{!?with_lto:--disable-lto} \
%{?with_plugin:--enable-plugin}%{!?with_plugin:--disable-plugin} \
+ %{?gcc_options:%gcc_options} \
--enable-newlib-io-c99-formats \
%{?with_iconv:--enable-newlib-iconv} \
--enable-languages="$languages"
@@ -557,6 +562,7 @@ echo "RTEMS gcc-%{gcc_version}-4%{?dist}/newlib-%{newlib_version}-26%{?dist}" >
%{!?with_pygdb:*/libstdc++*gdb.py*) rm ${RPM_BUILD_ROOT}/$i ;;} # ignore for now
%{?with_pygdb:*/libstdc++*gdb.py*) >> build/files.g++ ;;}
*/libstdc++.*) echo "$i" >> build/files.g++ ;;
+ */cygstdc++*.dll) echo "$i" >> build/files.g++ ;;
*/libsupc++.*) echo "$i" >> build/files.g++ ;;
*) echo "$i" >> build/files.gcc ;;
esac
@@ -642,7 +648,7 @@ sed -e 's,^[ ]*/usr/lib/rpm/find-debuginfo.sh,./find-debuginfo.sh,' \
%endif
%clean
- rm -rf $RPM_BUILD_ROOT
+ %{?el5:rm -rf $RPM_BUILD_ROOT}
# ==============================================================
# rtems-4.11-avr-rtems4.11-gcc
diff --git a/rtems4.11/avr/rtems-4.11-avr-rtems4.11-gdb.spec b/rtems4.11/avr/rtems-4.11-avr-rtems4.11-gdb.spec
index 42a8a5c..f00d3de 100644
--- a/rtems4.11/avr/rtems-4.11-avr-rtems4.11-gdb.spec
+++ b/rtems4.11/avr/rtems-4.11-avr-rtems4.11-gdb.spec
@@ -28,8 +28,12 @@
%endif
%ifos cygwin cygwin32
+%if "%{_host}" == "x86_64-pc-cygwin"
+%define optflags -O2 -pipe
+%else
%define optflags -O3 -pipe -march=i486 -funroll-loops
%endif
+%endif
%ifos mingw mingw32
%if %{defined _mingw32_cflags}
@@ -244,7 +248,7 @@ sed -e 's,^\s*/usr/lib/rpm.*/brp-strip,./brp-strip,' \
%define __os_install_post . ./os_install_post
%clean
- rm -rf $RPM_BUILD_ROOT
+ %{?el5:rm -rf $RPM_BUILD_ROOT}
# ==============================================================
# avr-rtems4.11-gdb
diff --git a/rtems4.11/bfin/rtems-4.11-bfin-rtems4.11-binutils.spec b/rtems4.11/bfin/rtems-4.11-bfin-rtems4.11-binutils.spec
index 7554d0a..8aaba36 100644
--- a/rtems4.11/bfin/rtems-4.11-bfin-rtems4.11-binutils.spec
+++ b/rtems4.11/bfin/rtems-4.11-bfin-rtems4.11-binutils.spec
@@ -28,8 +28,12 @@
%endif
%ifos cygwin cygwin32
+%if "%{_host}" == "x86_64-pc-cygwin"
+%define optflags -O2 -pipe
+%else
%define optflags -O3 -pipe -march=i486 -funroll-loops
%endif
+%endif
%ifos mingw mingw32
%if %{defined _mingw32_cflags}
@@ -186,7 +190,7 @@ sed -e 's,^\s*/usr/lib/rpm.*/brp-strip,./brp-strip,' \
%define __os_install_post . ./os_install_post
%clean
- rm -rf $RPM_BUILD_ROOT
+ %{?el5:rm -rf $RPM_BUILD_ROOT}
# ==============================================================
# bfin-rtems4.11-binutils
diff --git a/rtems4.11/bfin/rtems-4.11-bfin-rtems4.11-gcc.spec b/rtems4.11/bfin/rtems-4.11-bfin-rtems4.11-gcc.spec
index c50d365..98b0d98 100644
--- a/rtems4.11/bfin/rtems-4.11-bfin-rtems4.11-gcc.spec
+++ b/rtems4.11/bfin/rtems-4.11-bfin-rtems4.11-gcc.spec
@@ -28,8 +28,12 @@
%endif
%ifos cygwin cygwin32
+%if "%{_host}" == "x86_64-pc-cygwin"
+%define optflags -O2 -pipe
+%else
%define optflags -O3 -pipe -march=i486 -funroll-loops
%endif
+%endif
%ifos mingw mingw32
%if %{defined _mingw32_cflags}
@@ -416,6 +420,7 @@ echo "RTEMS gcc-%{gcc_version}-3%{?dist}/newlib-%{newlib_version}-29%{?dist}" >
--enable-threads \
%{?with_lto:--enable-lto}%{!?with_lto:--disable-lto} \
%{?with_plugin:--enable-plugin}%{!?with_plugin:--disable-plugin} \
+ %{?gcc_options:%gcc_options} \
--enable-newlib-io-c99-formats \
%{?with_iconv:--enable-newlib-iconv} \
--enable-languages="$languages"
@@ -562,6 +567,7 @@ echo "RTEMS gcc-%{gcc_version}-3%{?dist}/newlib-%{newlib_version}-29%{?dist}" >
%{!?with_pygdb:*/libstdc++*gdb.py*) rm ${RPM_BUILD_ROOT}/$i ;;} # ignore for now
%{?with_pygdb:*/libstdc++*gdb.py*) >> build/files.g++ ;;}
*/libstdc++.*) echo "$i" >> build/files.g++ ;;
+ */cygstdc++*.dll) echo "$i" >> build/files.g++ ;;
*/libsupc++.*) echo "$i" >> build/files.g++ ;;
*) echo "$i" >> build/files.gcc ;;
esac
@@ -647,7 +653,7 @@ sed -e 's,^[ ]*/usr/lib/rpm/find-debuginfo.sh,./find-debuginfo.sh,' \
%endif
%clean
- rm -rf $RPM_BUILD_ROOT
+ %{?el5:rm -rf $RPM_BUILD_ROOT}
# ==============================================================
# rtems-4.11-bfin-rtems4.11-gcc
diff --git a/rtems4.11/bfin/rtems-4.11-bfin-rtems4.11-gdb.spec b/rtems4.11/bfin/rtems-4.11-bfin-rtems4.11-gdb.spec
index 5dcf9b3..52a97de 100644
--- a/rtems4.11/bfin/rtems-4.11-bfin-rtems4.11-gdb.spec
+++ b/rtems4.11/bfin/rtems-4.11-bfin-rtems4.11-gdb.spec
@@ -28,8 +28,12 @@
%endif
%ifos cygwin cygwin32
+%if "%{_host}" == "x86_64-pc-cygwin"
+%define optflags -O2 -pipe
+%else
%define optflags -O3 -pipe -march=i486 -funroll-loops
%endif
+%endif
%ifos mingw mingw32
%if %{defined _mingw32_cflags}
@@ -244,7 +248,7 @@ sed -e 's,^\s*/usr/lib/rpm.*/brp-strip,./brp-strip,' \
%define __os_install_post . ./os_install_post
%clean
- rm -rf $RPM_BUILD_ROOT
+ %{?el5:rm -rf $RPM_BUILD_ROOT}
# ==============================================================
# bfin-rtems4.11-gdb
diff --git a/rtems4.11/h8300/rtems-4.11-h8300-rtems4.11-binutils.spec b/rtems4.11/h8300/rtems-4.11-h8300-rtems4.11-binutils.spec
index 1985b4f..cf7dba7 100644
--- a/rtems4.11/h8300/rtems-4.11-h8300-rtems4.11-binutils.spec
+++ b/rtems4.11/h8300/rtems-4.11-h8300-rtems4.11-binutils.spec
@@ -28,8 +28,12 @@
%endif
%ifos cygwin cygwin32
+%if "%{_host}" == "x86_64-pc-cygwin"
+%define optflags -O2 -pipe
+%else
%define optflags -O3 -pipe -march=i486 -funroll-loops
%endif
+%endif
%ifos mingw mingw32
%if %{defined _mingw32_cflags}
@@ -186,7 +190,7 @@ sed -e 's,^\s*/usr/lib/rpm.*/brp-strip,./brp-strip,' \
%define __os_install_post . ./os_install_post
%clean
- rm -rf $RPM_BUILD_ROOT
+ %{?el5:rm -rf $RPM_BUILD_ROOT}
# ==============================================================
# h8300-rtems4.11-binutils
diff --git a/rtems4.11/h8300/rtems-4.11-h8300-rtems4.11-gcc.spec b/rtems4.11/h8300/rtems-4.11-h8300-rtems4.11-gcc.spec
index 10a01d0..abd31f8 100644
--- a/rtems4.11/h8300/rtems-4.11-h8300-rtems4.11-gcc.spec
+++ b/rtems4.11/h8300/rtems-4.11-h8300-rtems4.11-gcc.spec
@@ -28,8 +28,12 @@
%endif
%ifos cygwin cygwin32
+%if "%{_host}" == "x86_64-pc-cygwin"
+%define optflags -O2 -pipe
+%else
%define optflags -O3 -pipe -march=i486 -funroll-loops
%endif
+%endif
%ifos mingw mingw32
%if %{defined _mingw32_cflags}
@@ -416,6 +420,7 @@ echo "RTEMS gcc-%{gcc_version}-3%{?dist}/newlib-%{newlib_version}-29%{?dist}" >
--enable-threads \
%{?with_lto:--enable-lto}%{!?with_lto:--disable-lto} \
%{?with_plugin:--enable-plugin}%{!?with_plugin:--disable-plugin} \
+ %{?gcc_options:%gcc_options} \
--enable-newlib-io-c99-formats \
%{?with_iconv:--enable-newlib-iconv} \
--enable-languages="$languages"
@@ -562,6 +567,7 @@ echo "RTEMS gcc-%{gcc_version}-3%{?dist}/newlib-%{newlib_version}-29%{?dist}" >
%{!?with_pygdb:*/libstdc++*gdb.py*) rm ${RPM_BUILD_ROOT}/$i ;;} # ignore for now
%{?with_pygdb:*/libstdc++*gdb.py*) >> build/files.g++ ;;}
*/libstdc++.*) echo "$i" >> build/files.g++ ;;
+ */cygstdc++*.dll) echo "$i" >> build/files.g++ ;;
*/libsupc++.*) echo "$i" >> build/files.g++ ;;
*) echo "$i" >> build/files.gcc ;;
esac
@@ -647,7 +653,7 @@ sed -e 's,^[ ]*/usr/lib/rpm/find-debuginfo.sh,./find-debuginfo.sh,' \
%endif
%clean
- rm -rf $RPM_BUILD_ROOT
+ %{?el5:rm -rf $RPM_BUILD_ROOT}
# ==============================================================
# rtems-4.11-h8300-rtems4.11-gcc
diff --git a/rtems4.11/h8300/rtems-4.11-h8300-rtems4.11-gdb.spec b/rtems4.11/h8300/rtems-4.11-h8300-rtems4.11-gdb.spec
index 43b2b11..7fb874f 100644
--- a/rtems4.11/h8300/rtems-4.11-h8300-rtems4.11-gdb.spec
+++ b/rtems4.11/h8300/rtems-4.11-h8300-rtems4.11-gdb.spec
@@ -28,8 +28,12 @@
%endif
%ifos cygwin cygwin32
+%if "%{_host}" == "x86_64-pc-cygwin"
+%define optflags -O2 -pipe
+%else
%define optflags -O3 -pipe -march=i486 -funroll-loops
%endif
+%endif
%ifos mingw mingw32
%if %{defined _mingw32_cflags}
@@ -248,7 +252,7 @@ sed -e 's,^\s*/usr/lib/rpm.*/brp-strip,./brp-strip,' \
%define __os_install_post . ./os_install_post
%clean
- rm -rf $RPM_BUILD_ROOT
+ %{?el5:rm -rf $RPM_BUILD_ROOT}
# ==============================================================
# h8300-rtems4.11-gdb
diff --git a/rtems4.11/i386/rtems-4.11-i386-rtems4.11-binutils.spec b/rtems4.11/i386/rtems-4.11-i386-rtems4.11-binutils.spec
index 208e0d2..c378107 100644
--- a/rtems4.11/i386/rtems-4.11-i386-rtems4.11-binutils.spec
+++ b/rtems4.11/i386/rtems-4.11-i386-rtems4.11-binutils.spec
@@ -28,8 +28,12 @@
%endif
%ifos cygwin cygwin32
+%if "%{_host}" == "x86_64-pc-cygwin"
+%define optflags -O2 -pipe
+%else
%define optflags -O3 -pipe -march=i486 -funroll-loops
%endif
+%endif
%ifos mingw mingw32
%if %{defined _mingw32_cflags}
@@ -186,7 +190,7 @@ sed -e 's,^\s*/usr/lib/rpm.*/brp-strip,./brp-strip,' \
%define __os_install_post . ./os_install_post
%clean
- rm -rf $RPM_BUILD_ROOT
+ %{?el5:rm -rf $RPM_BUILD_ROOT}
# ==============================================================
# i386-rtems4.11-binutils
diff --git a/rtems4.11/i386/rtems-4.11-i386-rtems4.11-gcc.spec b/rtems4.11/i386/rtems-4.11-i386-rtems4.11-gcc.spec
index 29c7f3d..a6b588f 100644
--- a/rtems4.11/i386/rtems-4.11-i386-rtems4.11-gcc.spec
+++ b/rtems4.11/i386/rtems-4.11-i386-rtems4.11-gcc.spec
@@ -28,8 +28,12 @@
%endif
%ifos cygwin cygwin32
+%if "%{_host}" == "x86_64-pc-cygwin"
+%define optflags -O2 -pipe
+%else
%define optflags -O3 -pipe -march=i486 -funroll-loops
%endif
+%endif
%ifos mingw mingw32
%if %{defined _mingw32_cflags}
@@ -416,6 +420,7 @@ echo "RTEMS gcc-%{gcc_version}-3%{?dist}/newlib-%{newlib_version}-29%{?dist}" >
--enable-threads \
%{?with_lto:--enable-lto}%{!?with_lto:--disable-lto} \
%{?with_plugin:--enable-plugin}%{!?with_plugin:--disable-plugin} \
+ %{?gcc_options:%gcc_options} \
--enable-newlib-io-c99-formats \
%{?with_iconv:--enable-newlib-iconv} \
--enable-languages="$languages"
@@ -562,6 +567,7 @@ echo "RTEMS gcc-%{gcc_version}-3%{?dist}/newlib-%{newlib_version}-29%{?dist}" >
%{!?with_pygdb:*/libstdc++*gdb.py*) rm ${RPM_BUILD_ROOT}/$i ;;} # ignore for now
%{?with_pygdb:*/libstdc++*gdb.py*) >> build/files.g++ ;;}
*/libstdc++.*) echo "$i" >> build/files.g++ ;;
+ */cygstdc++*.dll) echo "$i" >> build/files.g++ ;;
*/libsupc++.*) echo "$i" >> build/files.g++ ;;
*) echo "$i" >> build/files.gcc ;;
esac
@@ -647,7 +653,7 @@ sed -e 's,^[ ]*/usr/lib/rpm/find-debuginfo.sh,./find-debuginfo.sh,' \
%endif
%clean
- rm -rf $RPM_BUILD_ROOT
+ %{?el5:rm -rf $RPM_BUILD_ROOT}
# ==============================================================
# rtems-4.11-i386-rtems4.11-gcc
diff --git a/rtems4.11/i386/rtems-4.11-i386-rtems4.11-gdb.spec b/rtems4.11/i386/rtems-4.11-i386-rtems4.11-gdb.spec
index 86311cc..02d1390 100644
--- a/rtems4.11/i386/rtems-4.11-i386-rtems4.11-gdb.spec
+++ b/rtems4.11/i386/rtems-4.11-i386-rtems4.11-gdb.spec
@@ -28,8 +28,12 @@
%endif
%ifos cygwin cygwin32
+%if "%{_host}" == "x86_64-pc-cygwin"
+%define optflags -O2 -pipe
+%else
%define optflags -O3 -pipe -march=i486 -funroll-loops
%endif
+%endif
%ifos mingw mingw32
%if %{defined _mingw32_cflags}
@@ -244,7 +248,7 @@ sed -e 's,^\s*/usr/lib/rpm.*/brp-strip,./brp-strip,' \
%define __os_install_post . ./os_install_post
%clean
- rm -rf $RPM_BUILD_ROOT
+ %{?el5:rm -rf $RPM_BUILD_ROOT}
# ==============================================================
# i386-rtems4.11-gdb
diff --git a/rtems4.11/lm32/rtems-4.11-lm32-rtems4.11-binutils.spec b/rtems4.11/lm32/rtems-4.11-lm32-rtems4.11-binutils.spec
index e08d6a2..7fc2fa0 100644
--- a/rtems4.11/lm32/rtems-4.11-lm32-rtems4.11-binutils.spec
+++ b/rtems4.11/lm32/rtems-4.11-lm32-rtems4.11-binutils.spec
@@ -28,8 +28,12 @@
%endif
%ifos cygwin cygwin32
+%if "%{_host}" == "x86_64-pc-cygwin"
+%define optflags -O2 -pipe
+%else
%define optflags -O3 -pipe -march=i486 -funroll-loops
%endif
+%endif
%ifos mingw mingw32
%if %{defined _mingw32_cflags}
@@ -186,7 +190,7 @@ sed -e 's,^\s*/usr/lib/rpm.*/brp-strip,./brp-strip,' \
%define __os_install_post . ./os_install_post
%clean
- rm -rf $RPM_BUILD_ROOT
+ %{?el5:rm -rf $RPM_BUILD_ROOT}
# ==============================================================
# lm32-rtems4.11-binutils
diff --git a/rtems4.11/lm32/rtems-4.11-lm32-rtems4.11-gcc.spec b/rtems4.11/lm32/rtems-4.11-lm32-rtems4.11-gcc.spec
index 1c66324..9ffa8fe 100644
--- a/rtems4.11/lm32/rtems-4.11-lm32-rtems4.11-gcc.spec
+++ b/rtems4.11/lm32/rtems-4.11-lm32-rtems4.11-gcc.spec
@@ -28,8 +28,12 @@
%endif
%ifos cygwin cygwin32
+%if "%{_host}" == "x86_64-pc-cygwin"
+%define optflags -O2 -pipe
+%else
%define optflags -O3 -pipe -march=i486 -funroll-loops
%endif
+%endif
%ifos mingw mingw32
%if %{defined _mingw32_cflags}
@@ -421,6 +425,7 @@ echo "RTEMS gcc-%{gcc_version}-12%{?dist}/newlib-%{newlib_version}-18%{?dist}" >
--enable-threads \
%{?with_lto:--enable-lto}%{!?with_lto:--disable-lto} \
%{?with_plugin:--enable-plugin}%{!?with_plugin:--disable-plugin} \
+ %{?gcc_options:%gcc_options} \
--enable-newlib-io-c99-formats \
%{?with_iconv:--enable-newlib-iconv} \
--enable-languages="$languages"
@@ -567,6 +572,7 @@ echo "RTEMS gcc-%{gcc_version}-12%{?dist}/newlib-%{newlib_version}-18%{?dist}" >
%{!?with_pygdb:*/libstdc++*gdb.py*) rm ${RPM_BUILD_ROOT}/$i ;;} # ignore for now
%{?with_pygdb:*/libstdc++*gdb.py*) >> build/files.g++ ;;}
*/libstdc++.*) echo "$i" >> build/files.g++ ;;
+ */cygstdc++*.dll) echo "$i" >> build/files.g++ ;;
*/libsupc++.*) echo "$i" >> build/files.g++ ;;
*) echo "$i" >> build/files.gcc ;;
esac
@@ -652,7 +658,7 @@ sed -e 's,^[ ]*/usr/lib/rpm/find-debuginfo.sh,./find-debuginfo.sh,' \
%endif
%clean
- rm -rf $RPM_BUILD_ROOT
+ %{?el5:rm -rf $RPM_BUILD_ROOT}
# ==============================================================
# rtems-4.11-lm32-rtems4.11-gcc
diff --git a/rtems4.11/lm32/rtems-4.11-lm32-rtems4.11-gdb.spec b/rtems4.11/lm32/rtems-4.11-lm32-rtems4.11-gdb.spec
index 5badf12..331e6a3 100644
--- a/rtems4.11/lm32/rtems-4.11-lm32-rtems4.11-gdb.spec
+++ b/rtems4.11/lm32/rtems-4.11-lm32-rtems4.11-gdb.spec
@@ -28,8 +28,12 @@
%endif
%ifos cygwin cygwin32
+%if "%{_host}" == "x86_64-pc-cygwin"
+%define optflags -O2 -pipe
+%else
%define optflags -O3 -pipe -march=i486 -funroll-loops
%endif
+%endif
%ifos mingw mingw32
%if %{defined _mingw32_cflags}
@@ -248,7 +252,7 @@ sed -e 's,^\s*/usr/lib/rpm.*/brp-strip,./brp-strip,' \
%define __os_install_post . ./os_install_post
%clean
- rm -rf $RPM_BUILD_ROOT
+ %{?el5:rm -rf $RPM_BUILD_ROOT}
# ==============================================================
# lm32-rtems4.11-gdb
diff --git a/rtems4.11/m32c/rtems-4.11-m32c-rtems4.11-binutils.spec b/rtems4.11/m32c/rtems-4.11-m32c-rtems4.11-binutils.spec
index f09d0f6..399809d 100644
--- a/rtems4.11/m32c/rtems-4.11-m32c-rtems4.11-binutils.spec
+++ b/rtems4.11/m32c/rtems-4.11-m32c-rtems4.11-binutils.spec
@@ -28,8 +28,12 @@
%endif
%ifos cygwin cygwin32
+%if "%{_host}" == "x86_64-pc-cygwin"
+%define optflags -O2 -pipe
+%else
%define optflags -O3 -pipe -march=i486 -funroll-loops
%endif
+%endif
%ifos mingw mingw32
%if %{defined _mingw32_cflags}
@@ -186,7 +190,7 @@ sed -e 's,^\s*/usr/lib/rpm.*/brp-strip,./brp-strip,' \
%define __os_install_post . ./os_install_post
%clean
- rm -rf $RPM_BUILD_ROOT
+ %{?el5:rm -rf $RPM_BUILD_ROOT}
# ==============================================================
# m32c-rtems4.11-binutils
diff --git a/rtems4.11/m32c/rtems-4.11-m32c-rtems4.11-gcc.spec b/rtems4.11/m32c/rtems-4.11-m32c-rtems4.11-gcc.spec
index 674a965..310aeda 100644
--- a/rtems4.11/m32c/rtems-4.11-m32c-rtems4.11-gcc.spec
+++ b/rtems4.11/m32c/rtems-4.11-m32c-rtems4.11-gcc.spec
@@ -28,8 +28,12 @@
%endif
%ifos cygwin cygwin32
+%if "%{_host}" == "x86_64-pc-cygwin"
+%define optflags -O2 -pipe
+%else
%define optflags -O3 -pipe -march=i486 -funroll-loops
%endif
+%endif
%ifos mingw mingw32
%if %{defined _mingw32_cflags}
@@ -411,6 +415,7 @@ echo "RTEMS gcc-%{gcc_version}-4%{?dist}/newlib-%{newlib_version}-26%{?dist}" >
--enable-threads \
%{?with_lto:--enable-lto}%{!?with_lto:--disable-lto} \
%{?with_plugin:--enable-plugin}%{!?with_plugin:--disable-plugin} \
+ %{?gcc_options:%gcc_options} \
--enable-newlib-io-c99-formats \
%{?with_iconv:--enable-newlib-iconv} \
--enable-languages="$languages"
@@ -557,6 +562,7 @@ echo "RTEMS gcc-%{gcc_version}-4%{?dist}/newlib-%{newlib_version}-26%{?dist}" >
%{!?with_pygdb:*/libstdc++*gdb.py*) rm ${RPM_BUILD_ROOT}/$i ;;} # ignore for now
%{?with_pygdb:*/libstdc++*gdb.py*) >> build/files.g++ ;;}
*/libstdc++.*) echo "$i" >> build/files.g++ ;;
+ */cygstdc++*.dll) echo "$i" >> build/files.g++ ;;
*/libsupc++.*) echo "$i" >> build/files.g++ ;;
*) echo "$i" >> build/files.gcc ;;
esac
@@ -642,7 +648,7 @@ sed -e 's,^[ ]*/usr/lib/rpm/find-debuginfo.sh,./find-debuginfo.sh,' \
%endif
%clean
- rm -rf $RPM_BUILD_ROOT
+ %{?el5:rm -rf $RPM_BUILD_ROOT}
# ==============================================================
# rtems-4.11-m32c-rtems4.11-gcc
diff --git a/rtems4.11/m32c/rtems-4.11-m32c-rtems4.11-gdb.spec b/rtems4.11/m32c/rtems-4.11-m32c-rtems4.11-gdb.spec
index f3607d7..bfc033e 100644
--- a/rtems4.11/m32c/rtems-4.11-m32c-rtems4.11-gdb.spec
+++ b/rtems4.11/m32c/rtems-4.11-m32c-rtems4.11-gdb.spec
@@ -28,8 +28,12 @@
%endif
%ifos cygwin cygwin32
+%if "%{_host}" == "x86_64-pc-cygwin"
+%define optflags -O2 -pipe
+%else
%define optflags -O3 -pipe -march=i486 -funroll-loops
%endif
+%endif
%ifos mingw mingw32
%if %{defined _mingw32_cflags}
@@ -248,7 +252,7 @@ sed -e 's,^\s*/usr/lib/rpm.*/brp-strip,./brp-strip,' \
%define __os_install_post . ./os_install_post
%clean
- rm -rf $RPM_BUILD_ROOT
+ %{?el5:rm -rf $RPM_BUILD_ROOT}
# ==============================================================
# m32c-rtems4.11-gdb
diff --git a/rtems4.11/m32r/rtems-4.11-m32r-rtems4.11-binutils.spec b/rtems4.11/m32r/rtems-4.11-m32r-rtems4.11-binutils.spec
index 615fb0e..e6dcb97 100644
--- a/rtems4.11/m32r/rtems-4.11-m32r-rtems4.11-binutils.spec
+++ b/rtems4.11/m32r/rtems-4.11-m32r-rtems4.11-binutils.spec
@@ -28,8 +28,12 @@
%endif
%ifos cygwin cygwin32
+%if "%{_host}" == "x86_64-pc-cygwin"
+%define optflags -O2 -pipe
+%else
%define optflags -O3 -pipe -march=i486 -funroll-loops
%endif
+%endif
%ifos mingw mingw32
%if %{defined _mingw32_cflags}
@@ -186,7 +190,7 @@ sed -e 's,^\s*/usr/lib/rpm.*/brp-strip,./brp-strip,' \
%define __os_install_post . ./os_install_post
%clean
- rm -rf $RPM_BUILD_ROOT
+ %{?el5:rm -rf $RPM_BUILD_ROOT}
# ==============================================================
# m32r-rtems4.11-binutils
diff --git a/rtems4.11/m32r/rtems-4.11-m32r-rtems4.11-gcc.spec b/rtems4.11/m32r/rtems-4.11-m32r-rtems4.11-gcc.spec
index 7f93dfe..c043df9 100644
--- a/rtems4.11/m32r/rtems-4.11-m32r-rtems4.11-gcc.spec
+++ b/rtems4.11/m32r/rtems-4.11-m32r-rtems4.11-gcc.spec
@@ -28,8 +28,12 @@
%endif
%ifos cygwin cygwin32
+%if "%{_host}" == "x86_64-pc-cygwin"
+%define optflags -O2 -pipe
+%else
%define optflags -O3 -pipe -march=i486 -funroll-loops
%endif
+%endif
%ifos mingw mingw32
%if %{defined _mingw32_cflags}
@@ -416,6 +420,7 @@ echo "RTEMS gcc-%{gcc_version}-3%{?dist}/newlib-%{newlib_version}-29%{?dist}" >
--enable-threads \
%{?with_lto:--enable-lto}%{!?with_lto:--disable-lto} \
%{?with_plugin:--enable-plugin}%{!?with_plugin:--disable-plugin} \
+ %{?gcc_options:%gcc_options} \
--enable-newlib-io-c99-formats \
%{?with_iconv:--enable-newlib-iconv} \
--enable-languages="$languages"
@@ -562,6 +567,7 @@ echo "RTEMS gcc-%{gcc_version}-3%{?dist}/newlib-%{newlib_version}-29%{?dist}" >
%{!?with_pygdb:*/libstdc++*gdb.py*) rm ${RPM_BUILD_ROOT}/$i ;;} # ignore for now
%{?with_pygdb:*/libstdc++*gdb.py*) >> build/files.g++ ;;}
*/libstdc++.*) echo "$i" >> build/files.g++ ;;
+ */cygstdc++*.dll) echo "$i" >> build/files.g++ ;;
*/libsupc++.*) echo "$i" >> build/files.g++ ;;
*) echo "$i" >> build/files.gcc ;;
esac
@@ -647,7 +653,7 @@ sed -e 's,^[ ]*/usr/lib/rpm/find-debuginfo.sh,./find-debuginfo.sh,' \
%endif
%clean
- rm -rf $RPM_BUILD_ROOT
+ %{?el5:rm -rf $RPM_BUILD_ROOT}
# ==============================================================
# rtems-4.11-m32r-rtems4.11-gcc
diff --git a/rtems4.11/m32r/rtems-4.11-m32r-rtems4.11-gdb.spec b/rtems4.11/m32r/rtems-4.11-m32r-rtems4.11-gdb.spec
index 449e519..514db7e 100644
--- a/rtems4.11/m32r/rtems-4.11-m32r-rtems4.11-gdb.spec
+++ b/rtems4.11/m32r/rtems-4.11-m32r-rtems4.11-gdb.spec
@@ -28,8 +28,12 @@
%endif
%ifos cygwin cygwin32
+%if "%{_host}" == "x86_64-pc-cygwin"
+%define optflags -O2 -pipe
+%else
%define optflags -O3 -pipe -march=i486 -funroll-loops
%endif
+%endif
%ifos mingw mingw32
%if %{defined _mingw32_cflags}
@@ -244,7 +248,7 @@ sed -e 's,^\s*/usr/lib/rpm.*/brp-strip,./brp-strip,' \
%define __os_install_post . ./os_install_post
%clean
- rm -rf $RPM_BUILD_ROOT
+ %{?el5:rm -rf $RPM_BUILD_ROOT}
# ==============================================================
# m32r-rtems4.11-gdb
diff --git a/rtems4.11/m68k/rtems-4.11-m68k-rtems4.11-binutils.spec b/rtems4.11/m68k/rtems-4.11-m68k-rtems4.11-binutils.spec
index 1640acd..10a72ae 100644
--- a/rtems4.11/m68k/rtems-4.11-m68k-rtems4.11-binutils.spec
+++ b/rtems4.11/m68k/rtems-4.11-m68k-rtems4.11-binutils.spec
@@ -28,8 +28,12 @@
%endif
%ifos cygwin cygwin32
+%if "%{_host}" == "x86_64-pc-cygwin"
+%define optflags -O2 -pipe
+%else
%define optflags -O3 -pipe -march=i486 -funroll-loops
%endif
+%endif
%ifos mingw mingw32
%if %{defined _mingw32_cflags}
@@ -186,7 +190,7 @@ sed -e 's,^\s*/usr/lib/rpm.*/brp-strip,./brp-strip,' \
%define __os_install_post . ./os_install_post
%clean
- rm -rf $RPM_BUILD_ROOT
+ %{?el5:rm -rf $RPM_BUILD_ROOT}
# ==============================================================
# m68k-rtems4.11-binutils
diff --git a/rtems4.11/m68k/rtems-4.11-m68k-rtems4.11-gcc.spec b/rtems4.11/m68k/rtems-4.11-m68k-rtems4.11-gcc.spec
index bd5315d..34e4a42 100644
--- a/rtems4.11/m68k/rtems-4.11-m68k-rtems4.11-gcc.spec
+++ b/rtems4.11/m68k/rtems-4.11-m68k-rtems4.11-gcc.spec
@@ -28,8 +28,12 @@
%endif
%ifos cygwin cygwin32
+%if "%{_host}" == "x86_64-pc-cygwin"
+%define optflags -O2 -pipe
+%else
%define optflags -O3 -pipe -march=i486 -funroll-loops
%endif
+%endif
%ifos mingw mingw32
%if %{defined _mingw32_cflags}
@@ -416,6 +420,7 @@ echo "RTEMS gcc-%{gcc_version}-3%{?dist}/newlib-%{newlib_version}-29%{?dist}" >
--enable-threads \
%{?with_lto:--enable-lto}%{!?with_lto:--disable-lto} \
%{?with_plugin:--enable-plugin}%{!?with_plugin:--disable-plugin} \
+ %{?gcc_options:%gcc_options} \
--enable-newlib-io-c99-formats \
%{?with_iconv:--enable-newlib-iconv} \
--enable-languages="$languages"
@@ -562,6 +567,7 @@ echo "RTEMS gcc-%{gcc_version}-3%{?dist}/newlib-%{newlib_version}-29%{?dist}" >
%{!?with_pygdb:*/libstdc++*gdb.py*) rm ${RPM_BUILD_ROOT}/$i ;;} # ignore for now
%{?with_pygdb:*/libstdc++*gdb.py*) >> build/files.g++ ;;}
*/libstdc++.*) echo "$i" >> build/files.g++ ;;
+ */cygstdc++*.dll) echo "$i" >> build/files.g++ ;;
*/libsupc++.*) echo "$i" >> build/files.g++ ;;
*) echo "$i" >> build/files.gcc ;;
esac
@@ -647,7 +653,7 @@ sed -e 's,^[ ]*/usr/lib/rpm/find-debuginfo.sh,./find-debuginfo.sh,' \
%endif
%clean
- rm -rf $RPM_BUILD_ROOT
+ %{?el5:rm -rf $RPM_BUILD_ROOT}
# ==============================================================
# rtems-4.11-m68k-rtems4.11-gcc
diff --git a/rtems4.11/m68k/rtems-4.11-m68k-rtems4.11-gdb.spec b/rtems4.11/m68k/rtems-4.11-m68k-rtems4.11-gdb.spec
index 020e165..9d385aa 100644
--- a/rtems4.11/m68k/rtems-4.11-m68k-rtems4.11-gdb.spec
+++ b/rtems4.11/m68k/rtems-4.11-m68k-rtems4.11-gdb.spec
@@ -28,8 +28,12 @@
%endif
%ifos cygwin cygwin32
+%if "%{_host}" == "x86_64-pc-cygwin"
+%define optflags -O2 -pipe
+%else
%define optflags -O3 -pipe -march=i486 -funroll-loops
%endif
+%endif
%ifos mingw mingw32
%if %{defined _mingw32_cflags}
@@ -244,7 +248,7 @@ sed -e 's,^\s*/usr/lib/rpm.*/brp-strip,./brp-strip,' \
%define __os_install_post . ./os_install_post
%clean
- rm -rf $RPM_BUILD_ROOT
+ %{?el5:rm -rf $RPM_BUILD_ROOT}
# ==============================================================
# m68k-rtems4.11-gdb
diff --git a/rtems4.11/microblaze/rtems-4.11-microblaze-rtems4.11-binutils.spec b/rtems4.11/microblaze/rtems-4.11-microblaze-rtems4.11-binutils.spec
index b14f750..c1e0cf6 100644
--- a/rtems4.11/microblaze/rtems-4.11-microblaze-rtems4.11-binutils.spec
+++ b/rtems4.11/microblaze/rtems-4.11-microblaze-rtems4.11-binutils.spec
@@ -28,8 +28,12 @@
%endif
%ifos cygwin cygwin32
+%if "%{_host}" == "x86_64-pc-cygwin"
+%define optflags -O2 -pipe
+%else
%define optflags -O3 -pipe -march=i486 -funroll-loops
%endif
+%endif
%ifos mingw mingw32
%if %{defined _mingw32_cflags}
@@ -186,7 +190,7 @@ sed -e 's,^\s*/usr/lib/rpm.*/brp-strip,./brp-strip,' \
%define __os_install_post . ./os_install_post
%clean
- rm -rf $RPM_BUILD_ROOT
+ %{?el5:rm -rf $RPM_BUILD_ROOT}
# ==============================================================
# microblaze-rtems4.11-binutils
diff --git a/rtems4.11/microblaze/rtems-4.11-microblaze-rtems4.11-gcc.spec b/rtems4.11/microblaze/rtems-4.11-microblaze-rtems4.11-gcc.spec
index f3bf585..9aec297 100644
--- a/rtems4.11/microblaze/rtems-4.11-microblaze-rtems4.11-gcc.spec
+++ b/rtems4.11/microblaze/rtems-4.11-microblaze-rtems4.11-gcc.spec
@@ -28,8 +28,12 @@
%endif
%ifos cygwin cygwin32
+%if "%{_host}" == "x86_64-pc-cygwin"
+%define optflags -O2 -pipe
+%else
%define optflags -O3 -pipe -march=i486 -funroll-loops
%endif
+%endif
%ifos mingw mingw32
%if %{defined _mingw32_cflags}
@@ -416,6 +420,7 @@ echo "RTEMS gcc-%{gcc_version}-3%{?dist}/newlib-%{newlib_version}-29%{?dist}" >
--enable-threads \
%{?with_lto:--enable-lto}%{!?with_lto:--disable-lto} \
%{?with_plugin:--enable-plugin}%{!?with_plugin:--disable-plugin} \
+ %{?gcc_options:%gcc_options} \
--enable-newlib-io-c99-formats \
%{?with_iconv:--enable-newlib-iconv} \
--enable-languages="$languages"
@@ -562,6 +567,7 @@ echo "RTEMS gcc-%{gcc_version}-3%{?dist}/newlib-%{newlib_version}-29%{?dist}" >
%{!?with_pygdb:*/libstdc++*gdb.py*) rm ${RPM_BUILD_ROOT}/$i ;;} # ignore for now
%{?with_pygdb:*/libstdc++*gdb.py*) >> build/files.g++ ;;}
*/libstdc++.*) echo "$i" >> build/files.g++ ;;
+ */cygstdc++*.dll) echo "$i" >> build/files.g++ ;;
*/libsupc++.*) echo "$i" >> build/files.g++ ;;
*) echo "$i" >> build/files.gcc ;;
esac
@@ -647,7 +653,7 @@ sed -e 's,^[ ]*/usr/lib/rpm/find-debuginfo.sh,./find-debuginfo.sh,' \
%endif
%clean
- rm -rf $RPM_BUILD_ROOT
+ %{?el5:rm -rf $RPM_BUILD_ROOT}
# ==============================================================
# rtems-4.11-microblaze-rtems4.11-gcc
diff --git a/rtems4.11/microblaze/rtems-4.11-microblaze-rtems4.11-gdb.spec b/rtems4.11/microblaze/rtems-4.11-microblaze-rtems4.11-gdb.spec
index 5651562..58a8891 100644
--- a/rtems4.11/microblaze/rtems-4.11-microblaze-rtems4.11-gdb.spec
+++ b/rtems4.11/microblaze/rtems-4.11-microblaze-rtems4.11-gdb.spec
@@ -28,8 +28,12 @@
%endif
%ifos cygwin cygwin32
+%if "%{_host}" == "x86_64-pc-cygwin"
+%define optflags -O2 -pipe
+%else
%define optflags -O3 -pipe -march=i486 -funroll-loops
%endif
+%endif
%ifos mingw mingw32
%if %{defined _mingw32_cflags}
@@ -244,7 +248,7 @@ sed -e 's,^\s*/usr/lib/rpm.*/brp-strip,./brp-strip,' \
%define __os_install_post . ./os_install_post
%clean
- rm -rf $RPM_BUILD_ROOT
+ %{?el5:rm -rf $RPM_BUILD_ROOT}
# ==============================================================
# microblaze-rtems4.11-gdb
diff --git a/rtems4.11/mips/rtems-4.11-mips-rtems4.11-binutils.spec b/rtems4.11/mips/rtems-4.11-mips-rtems4.11-binutils.spec
index 9ffbe5c..36cc281 100644
--- a/rtems4.11/mips/rtems-4.11-mips-rtems4.11-binutils.spec
+++ b/rtems4.11/mips/rtems-4.11-mips-rtems4.11-binutils.spec
@@ -28,8 +28,12 @@
%endif
%ifos cygwin cygwin32
+%if "%{_host}" == "x86_64-pc-cygwin"
+%define optflags -O2 -pipe
+%else
%define optflags -O3 -pipe -march=i486 -funroll-loops
%endif
+%endif
%ifos mingw mingw32
%if %{defined _mingw32_cflags}
@@ -186,7 +190,7 @@ sed -e 's,^\s*/usr/lib/rpm.*/brp-strip,./brp-strip,' \
%define __os_install_post . ./os_install_post
%clean
- rm -rf $RPM_BUILD_ROOT
+ %{?el5:rm -rf $RPM_BUILD_ROOT}
# ==============================================================
# mips-rtems4.11-binutils
diff --git a/rtems4.11/mips/rtems-4.11-mips-rtems4.11-gcc.spec b/rtems4.11/mips/rtems-4.11-mips-rtems4.11-gcc.spec
index b8212e2..2ff3c42 100644
--- a/rtems4.11/mips/rtems-4.11-mips-rtems4.11-gcc.spec
+++ b/rtems4.11/mips/rtems-4.11-mips-rtems4.11-gcc.spec
@@ -28,8 +28,12 @@
%endif
%ifos cygwin cygwin32
+%if "%{_host}" == "x86_64-pc-cygwin"
+%define optflags -O2 -pipe
+%else
%define optflags -O3 -pipe -march=i486 -funroll-loops
%endif
+%endif
%ifos mingw mingw32
%if %{defined _mingw32_cflags}
@@ -416,6 +420,7 @@ echo "RTEMS gcc-%{gcc_version}-3%{?dist}/newlib-%{newlib_version}-29%{?dist}" >
--enable-threads \
%{?with_lto:--enable-lto}%{!?with_lto:--disable-lto} \
%{?with_plugin:--enable-plugin}%{!?with_plugin:--disable-plugin} \
+ %{?gcc_options:%gcc_options} \
--enable-newlib-io-c99-formats \
%{?with_iconv:--enable-newlib-iconv} \
--enable-languages="$languages"
@@ -562,6 +567,7 @@ echo "RTEMS gcc-%{gcc_version}-3%{?dist}/newlib-%{newlib_version}-29%{?dist}" >
%{!?with_pygdb:*/libstdc++*gdb.py*) rm ${RPM_BUILD_ROOT}/$i ;;} # ignore for now
%{?with_pygdb:*/libstdc++*gdb.py*) >> build/files.g++ ;;}
*/libstdc++.*) echo "$i" >> build/files.g++ ;;
+ */cygstdc++*.dll) echo "$i" >> build/files.g++ ;;
*/libsupc++.*) echo "$i" >> build/files.g++ ;;
*) echo "$i" >> build/files.gcc ;;
esac
@@ -647,7 +653,7 @@ sed -e 's,^[ ]*/usr/lib/rpm/find-debuginfo.sh,./find-debuginfo.sh,' \
%endif
%clean
- rm -rf $RPM_BUILD_ROOT
+ %{?el5:rm -rf $RPM_BUILD_ROOT}
# ==============================================================
# rtems-4.11-mips-rtems4.11-gcc
diff --git a/rtems4.11/mips/rtems-4.11-mips-rtems4.11-gdb.spec b/rtems4.11/mips/rtems-4.11-mips-rtems4.11-gdb.spec
index bdb6b76..cb44df5 100644
--- a/rtems4.11/mips/rtems-4.11-mips-rtems4.11-gdb.spec
+++ b/rtems4.11/mips/rtems-4.11-mips-rtems4.11-gdb.spec
@@ -28,8 +28,12 @@
%endif
%ifos cygwin cygwin32
+%if "%{_host}" == "x86_64-pc-cygwin"
+%define optflags -O2 -pipe
+%else
%define optflags -O3 -pipe -march=i486 -funroll-loops
%endif
+%endif
%ifos mingw mingw32
%if %{defined _mingw32_cflags}
@@ -244,7 +248,7 @@ sed -e 's,^\s*/usr/lib/rpm.*/brp-strip,./brp-strip,' \
%define __os_install_post . ./os_install_post
%clean
- rm -rf $RPM_BUILD_ROOT
+ %{?el5:rm -rf $RPM_BUILD_ROOT}
# ==============================================================
# mips-rtems4.11-gdb
diff --git a/rtems4.11/mipstx39/rtems-4.11-mipstx39-rtems4.11-gdb.spec b/rtems4.11/mipstx39/rtems-4.11-mipstx39-rtems4.11-gdb.spec
index b746643..45be7cb 100644
--- a/rtems4.11/mipstx39/rtems-4.11-mipstx39-rtems4.11-gdb.spec
+++ b/rtems4.11/mipstx39/rtems-4.11-mipstx39-rtems4.11-gdb.spec
@@ -28,8 +28,12 @@
%endif
%ifos cygwin cygwin32
+%if "%{_host}" == "x86_64-pc-cygwin"
+%define optflags -O2 -pipe
+%else
%define optflags -O3 -pipe -march=i486 -funroll-loops
%endif
+%endif
%ifos mingw mingw32
%if %{defined _mingw32_cflags}
@@ -248,7 +252,7 @@ sed -e 's,^\s*/usr/lib/rpm.*/brp-strip,./brp-strip,' \
%define __os_install_post . ./os_install_post
%clean
- rm -rf $RPM_BUILD_ROOT
+ %{?el5:rm -rf $RPM_BUILD_ROOT}
# ==============================================================
# mipstx39-rtems4.11-gdb
diff --git a/rtems4.11/powerpc/rtems-4.11-powerpc-rtems4.11-binutils.spec b/rtems4.11/powerpc/rtems-4.11-powerpc-rtems4.11-binutils.spec
index 449e2cd..a822514 100644
--- a/rtems4.11/powerpc/rtems-4.11-powerpc-rtems4.11-binutils.spec
+++ b/rtems4.11/powerpc/rtems-4.11-powerpc-rtems4.11-binutils.spec
@@ -28,8 +28,12 @@
%endif
%ifos cygwin cygwin32
+%if "%{_host}" == "x86_64-pc-cygwin"
+%define optflags -O2 -pipe
+%else
%define optflags -O3 -pipe -march=i486 -funroll-loops
%endif
+%endif
%ifos mingw mingw32
%if %{defined _mingw32_cflags}
@@ -186,7 +190,7 @@ sed -e 's,^\s*/usr/lib/rpm.*/brp-strip,./brp-strip,' \
%define __os_install_post . ./os_install_post
%clean
- rm -rf $RPM_BUILD_ROOT
+ %{?el5:rm -rf $RPM_BUILD_ROOT}
# ==============================================================
# powerpc-rtems4.11-binutils
diff --git a/rtems4.11/powerpc/rtems-4.11-powerpc-rtems4.11-gcc.spec b/rtems4.11/powerpc/rtems-4.11-powerpc-rtems4.11-gcc.spec
index 4b4676e..23fef8d 100644
--- a/rtems4.11/powerpc/rtems-4.11-powerpc-rtems4.11-gcc.spec
+++ b/rtems4.11/powerpc/rtems-4.11-powerpc-rtems4.11-gcc.spec
@@ -28,8 +28,12 @@
%endif
%ifos cygwin cygwin32
+%if "%{_host}" == "x86_64-pc-cygwin"
+%define optflags -O2 -pipe
+%else
%define optflags -O3 -pipe -march=i486 -funroll-loops
%endif
+%endif
%ifos mingw mingw32
%if %{defined _mingw32_cflags}
@@ -416,6 +420,7 @@ echo "RTEMS gcc-%{gcc_version}-3%{?dist}/newlib-%{newlib_version}-29%{?dist}" >
--enable-threads \
%{?with_lto:--enable-lto}%{!?with_lto:--disable-lto} \
%{?with_plugin:--enable-plugin}%{!?with_plugin:--disable-plugin} \
+ %{?gcc_options:%gcc_options} \
--enable-newlib-io-c99-formats \
%{?with_iconv:--enable-newlib-iconv} \
--enable-languages="$languages"
@@ -562,6 +567,7 @@ echo "RTEMS gcc-%{gcc_version}-3%{?dist}/newlib-%{newlib_version}-29%{?dist}" >
%{!?with_pygdb:*/libstdc++*gdb.py*) rm ${RPM_BUILD_ROOT}/$i ;;} # ignore for now
%{?with_pygdb:*/libstdc++*gdb.py*) >> build/files.g++ ;;}
*/libstdc++.*) echo "$i" >> build/files.g++ ;;
+ */cygstdc++*.dll) echo "$i" >> build/files.g++ ;;
*/libsupc++.*) echo "$i" >> build/files.g++ ;;
*) echo "$i" >> build/files.gcc ;;
esac
@@ -647,7 +653,7 @@ sed -e 's,^[ ]*/usr/lib/rpm/find-debuginfo.sh,./find-debuginfo.sh,' \
%endif
%clean
- rm -rf $RPM_BUILD_ROOT
+ %{?el5:rm -rf $RPM_BUILD_ROOT}
# ==============================================================
# rtems-4.11-powerpc-rtems4.11-gcc
diff --git a/rtems4.11/powerpc/rtems-4.11-powerpc-rtems4.11-gdb.spec b/rtems4.11/powerpc/rtems-4.11-powerpc-rtems4.11-gdb.spec
index 01fb39e..b0b3f3d 100644
--- a/rtems4.11/powerpc/rtems-4.11-powerpc-rtems4.11-gdb.spec
+++ b/rtems4.11/powerpc/rtems-4.11-powerpc-rtems4.11-gdb.spec
@@ -28,8 +28,12 @@
%endif
%ifos cygwin cygwin32
+%if "%{_host}" == "x86_64-pc-cygwin"
+%define optflags -O2 -pipe
+%else
%define optflags -O3 -pipe -march=i486 -funroll-loops
%endif
+%endif
%ifos mingw mingw32
%if %{defined _mingw32_cflags}
@@ -250,7 +254,7 @@ sed -e 's,^\s*/usr/lib/rpm.*/brp-strip,./brp-strip,' \
%define __os_install_post . ./os_install_post
%clean
- rm -rf $RPM_BUILD_ROOT
+ %{?el5:rm -rf $RPM_BUILD_ROOT}
# ==============================================================
# powerpc-rtems4.11-gdb
diff --git a/rtems4.11/sh/rtems-4.11-sh-rtems4.11-binutils.spec b/rtems4.11/sh/rtems-4.11-sh-rtems4.11-binutils.spec
index b6689ee..c6ade62 100644
--- a/rtems4.11/sh/rtems-4.11-sh-rtems4.11-binutils.spec
+++ b/rtems4.11/sh/rtems-4.11-sh-rtems4.11-binutils.spec
@@ -28,8 +28,12 @@
%endif
%ifos cygwin cygwin32
+%if "%{_host}" == "x86_64-pc-cygwin"
+%define optflags -O2 -pipe
+%else
%define optflags -O3 -pipe -march=i486 -funroll-loops
%endif
+%endif
%ifos mingw mingw32
%if %{defined _mingw32_cflags}
@@ -186,7 +190,7 @@ sed -e 's,^\s*/usr/lib/rpm.*/brp-strip,./brp-strip,' \
%define __os_install_post . ./os_install_post
%clean
- rm -rf $RPM_BUILD_ROOT
+ %{?el5:rm -rf $RPM_BUILD_ROOT}
# ==============================================================
# sh-rtems4.11-binutils
diff --git a/rtems4.11/sh/rtems-4.11-sh-rtems4.11-gcc.spec b/rtems4.11/sh/rtems-4.11-sh-rtems4.11-gcc.spec
index 047f469..39c1b3b 100644
--- a/rtems4.11/sh/rtems-4.11-sh-rtems4.11-gcc.spec
+++ b/rtems4.11/sh/rtems-4.11-sh-rtems4.11-gcc.spec
@@ -28,8 +28,12 @@
%endif
%ifos cygwin cygwin32
+%if "%{_host}" == "x86_64-pc-cygwin"
+%define optflags -O2 -pipe
+%else
%define optflags -O3 -pipe -march=i486 -funroll-loops
%endif
+%endif
%ifos mingw mingw32
%if %{defined _mingw32_cflags}
@@ -416,6 +420,7 @@ echo "RTEMS gcc-%{gcc_version}-3%{?dist}/newlib-%{newlib_version}-29%{?dist}" >
--enable-threads \
%{?with_lto:--enable-lto}%{!?with_lto:--disable-lto} \
%{?with_plugin:--enable-plugin}%{!?with_plugin:--disable-plugin} \
+ %{?gcc_options:%gcc_options} \
--enable-newlib-io-c99-formats \
%{?with_iconv:--enable-newlib-iconv} \
--enable-languages="$languages"
@@ -562,6 +567,7 @@ echo "RTEMS gcc-%{gcc_version}-3%{?dist}/newlib-%{newlib_version}-29%{?dist}" >
%{!?with_pygdb:*/libstdc++*gdb.py*) rm ${RPM_BUILD_ROOT}/$i ;;} # ignore for now
%{?with_pygdb:*/libstdc++*gdb.py*) >> build/files.g++ ;;}
*/libstdc++.*) echo "$i" >> build/files.g++ ;;
+ */cygstdc++*.dll) echo "$i" >> build/files.g++ ;;
*/libsupc++.*) echo "$i" >> build/files.g++ ;;
*) echo "$i" >> build/files.gcc ;;
esac
@@ -647,7 +653,7 @@ sed -e 's,^[ ]*/usr/lib/rpm/find-debuginfo.sh,./find-debuginfo.sh,' \
%endif
%clean
- rm -rf $RPM_BUILD_ROOT
+ %{?el5:rm -rf $RPM_BUILD_ROOT}
# ==============================================================
# rtems-4.11-sh-rtems4.11-gcc
diff --git a/rtems4.11/sh/rtems-4.11-sh-rtems4.11-gdb.spec b/rtems4.11/sh/rtems-4.11-sh-rtems4.11-gdb.spec
index 7079fc7..b9cafae 100644
--- a/rtems4.11/sh/rtems-4.11-sh-rtems4.11-gdb.spec
+++ b/rtems4.11/sh/rtems-4.11-sh-rtems4.11-gdb.spec
@@ -28,8 +28,12 @@
%endif
%ifos cygwin cygwin32
+%if "%{_host}" == "x86_64-pc-cygwin"
+%define optflags -O2 -pipe
+%else
%define optflags -O3 -pipe -march=i486 -funroll-loops
%endif
+%endif
%ifos mingw mingw32
%if %{defined _mingw32_cflags}
@@ -244,7 +248,7 @@ sed -e 's,^\s*/usr/lib/rpm.*/brp-strip,./brp-strip,' \
%define __os_install_post . ./os_install_post
%clean
- rm -rf $RPM_BUILD_ROOT
+ %{?el5:rm -rf $RPM_BUILD_ROOT}
# ==============================================================
# sh-rtems4.11-gdb
diff --git a/rtems4.11/sparc/rtems-4.11-sparc-rtems4.11-binutils.spec b/rtems4.11/sparc/rtems-4.11-sparc-rtems4.11-binutils.spec
index c2f17bb..564fa22 100644
--- a/rtems4.11/sparc/rtems-4.11-sparc-rtems4.11-binutils.spec
+++ b/rtems4.11/sparc/rtems-4.11-sparc-rtems4.11-binutils.spec
@@ -28,8 +28,12 @@
%endif
%ifos cygwin cygwin32
+%if "%{_host}" == "x86_64-pc-cygwin"
+%define optflags -O2 -pipe
+%else
%define optflags -O3 -pipe -march=i486 -funroll-loops
%endif
+%endif
%ifos mingw mingw32
%if %{defined _mingw32_cflags}
@@ -186,7 +190,7 @@ sed -e 's,^\s*/usr/lib/rpm.*/brp-strip,./brp-strip,' \
%define __os_install_post . ./os_install_post
%clean
- rm -rf $RPM_BUILD_ROOT
+ %{?el5:rm -rf $RPM_BUILD_ROOT}
# ==============================================================
# sparc-rtems4.11-binutils
diff --git a/rtems4.11/sparc/rtems-4.11-sparc-rtems4.11-gcc.spec b/rtems4.11/sparc/rtems-4.11-sparc-rtems4.11-gcc.spec
index afa8435..5171444 100644
--- a/rtems4.11/sparc/rtems-4.11-sparc-rtems4.11-gcc.spec
+++ b/rtems4.11/sparc/rtems-4.11-sparc-rtems4.11-gcc.spec
@@ -28,8 +28,12 @@
%endif
%ifos cygwin cygwin32
+%if "%{_host}" == "x86_64-pc-cygwin"
+%define optflags -O2 -pipe
+%else
%define optflags -O3 -pipe -march=i486 -funroll-loops
%endif
+%endif
%ifos mingw mingw32
%if %{defined _mingw32_cflags}
@@ -416,6 +420,7 @@ echo "RTEMS gcc-%{gcc_version}-3%{?dist}/newlib-%{newlib_version}-29%{?dist}" >
--enable-threads \
%{?with_lto:--enable-lto}%{!?with_lto:--disable-lto} \
%{?with_plugin:--enable-plugin}%{!?with_plugin:--disable-plugin} \
+ %{?gcc_options:%gcc_options} \
--enable-newlib-io-c99-formats \
%{?with_iconv:--enable-newlib-iconv} \
--enable-languages="$languages"
@@ -562,6 +567,7 @@ echo "RTEMS gcc-%{gcc_version}-3%{?dist}/newlib-%{newlib_version}-29%{?dist}" >
%{!?with_pygdb:*/libstdc++*gdb.py*) rm ${RPM_BUILD_ROOT}/$i ;;} # ignore for now
%{?with_pygdb:*/libstdc++*gdb.py*) >> build/files.g++ ;;}
*/libstdc++.*) echo "$i" >> build/files.g++ ;;
+ */cygstdc++*.dll) echo "$i" >> build/files.g++ ;;
*/libsupc++.*) echo "$i" >> build/files.g++ ;;
*) echo "$i" >> build/files.gcc ;;
esac
@@ -647,7 +653,7 @@ sed -e 's,^[ ]*/usr/lib/rpm/find-debuginfo.sh,./find-debuginfo.sh,' \
%endif
%clean
- rm -rf $RPM_BUILD_ROOT
+ %{?el5:rm -rf $RPM_BUILD_ROOT}
# ==============================================================
# rtems-4.11-sparc-rtems4.11-gcc
diff --git a/rtems4.11/sparc/rtems-4.11-sparc-rtems4.11-gdb.spec b/rtems4.11/sparc/rtems-4.11-sparc-rtems4.11-gdb.spec
index ceeed5f..c0fd6b2 100644
--- a/rtems4.11/sparc/rtems-4.11-sparc-rtems4.11-gdb.spec
+++ b/rtems4.11/sparc/rtems-4.11-sparc-rtems4.11-gdb.spec
@@ -28,8 +28,12 @@
%endif
%ifos cygwin cygwin32
+%if "%{_host}" == "x86_64-pc-cygwin"
+%define optflags -O2 -pipe
+%else
%define optflags -O3 -pipe -march=i486 -funroll-loops
%endif
+%endif
%ifos mingw mingw32
%if %{defined _mingw32_cflags}
@@ -248,7 +252,7 @@ sed -e 's,^\s*/usr/lib/rpm.*/brp-strip,./brp-strip,' \
%define __os_install_post . ./os_install_post
%clean
- rm -rf $RPM_BUILD_ROOT
+ %{?el5:rm -rf $RPM_BUILD_ROOT}
# ==============================================================
# sparc-rtems4.11-gdb
diff --git a/rtems4.11/sparc64/rtems-4.11-sparc64-rtems4.11-binutils.spec b/rtems4.11/sparc64/rtems-4.11-sparc64-rtems4.11-binutils.spec
index 6da3c03..aec8a5a 100644
--- a/rtems4.11/sparc64/rtems-4.11-sparc64-rtems4.11-binutils.spec
+++ b/rtems4.11/sparc64/rtems-4.11-sparc64-rtems4.11-binutils.spec
@@ -28,8 +28,12 @@
%endif
%ifos cygwin cygwin32
+%if "%{_host}" == "x86_64-pc-cygwin"
+%define optflags -O2 -pipe
+%else
%define optflags -O3 -pipe -march=i486 -funroll-loops
%endif
+%endif
%ifos mingw mingw32
%if %{defined _mingw32_cflags}
@@ -186,7 +190,7 @@ sed -e 's,^\s*/usr/lib/rpm.*/brp-strip,./brp-strip,' \
%define __os_install_post . ./os_install_post
%clean
- rm -rf $RPM_BUILD_ROOT
+ %{?el5:rm -rf $RPM_BUILD_ROOT}
# ==============================================================
# sparc64-rtems4.11-binutils
diff --git a/rtems4.11/sparc64/rtems-4.11-sparc64-rtems4.11-gcc.spec b/rtems4.11/sparc64/rtems-4.11-sparc64-rtems4.11-gcc.spec
index bb3d86e..8982316 100644
--- a/rtems4.11/sparc64/rtems-4.11-sparc64-rtems4.11-gcc.spec
+++ b/rtems4.11/sparc64/rtems-4.11-sparc64-rtems4.11-gcc.spec
@@ -28,8 +28,12 @@
%endif
%ifos cygwin cygwin32
+%if "%{_host}" == "x86_64-pc-cygwin"
+%define optflags -O2 -pipe
+%else
%define optflags -O3 -pipe -march=i486 -funroll-loops
%endif
+%endif
%ifos mingw mingw32
%if %{defined _mingw32_cflags}
@@ -416,6 +420,7 @@ echo "RTEMS gcc-%{gcc_version}-3%{?dist}/newlib-%{newlib_version}-29%{?dist}" >
--enable-threads \
%{?with_lto:--enable-lto}%{!?with_lto:--disable-lto} \
%{?with_plugin:--enable-plugin}%{!?with_plugin:--disable-plugin} \
+ %{?gcc_options:%gcc_options} \
--enable-newlib-io-c99-formats \
%{?with_iconv:--enable-newlib-iconv} \
--enable-languages="$languages"
@@ -562,6 +567,7 @@ echo "RTEMS gcc-%{gcc_version}-3%{?dist}/newlib-%{newlib_version}-29%{?dist}" >
%{!?with_pygdb:*/libstdc++*gdb.py*) rm ${RPM_BUILD_ROOT}/$i ;;} # ignore for now
%{?with_pygdb:*/libstdc++*gdb.py*) >> build/files.g++ ;;}
*/libstdc++.*) echo "$i" >> build/files.g++ ;;
+ */cygstdc++*.dll) echo "$i" >> build/files.g++ ;;
*/libsupc++.*) echo "$i" >> build/files.g++ ;;
*) echo "$i" >> build/files.gcc ;;
esac
@@ -647,7 +653,7 @@ sed -e 's,^[ ]*/usr/lib/rpm/find-debuginfo.sh,./find-debuginfo.sh,' \
%endif
%clean
- rm -rf $RPM_BUILD_ROOT
+ %{?el5:rm -rf $RPM_BUILD_ROOT}
# ==============================================================
# rtems-4.11-sparc64-rtems4.11-gcc
diff --git a/rtems4.11/sparc64/rtems-4.11-sparc64-rtems4.11-gdb.spec b/rtems4.11/sparc64/rtems-4.11-sparc64-rtems4.11-gdb.spec
index c0c9249..6e66126 100644
--- a/rtems4.11/sparc64/rtems-4.11-sparc64-rtems4.11-gdb.spec
+++ b/rtems4.11/sparc64/rtems-4.11-sparc64-rtems4.11-gdb.spec
@@ -28,8 +28,12 @@
%endif
%ifos cygwin cygwin32
+%if "%{_host}" == "x86_64-pc-cygwin"
+%define optflags -O2 -pipe
+%else
%define optflags -O3 -pipe -march=i486 -funroll-loops
%endif
+%endif
%ifos mingw mingw32
%if %{defined _mingw32_cflags}
@@ -244,7 +248,7 @@ sed -e 's,^\s*/usr/lib/rpm.*/brp-strip,./brp-strip,' \
%define __os_install_post . ./os_install_post
%clean
- rm -rf $RPM_BUILD_ROOT
+ %{?el5:rm -rf $RPM_BUILD_ROOT}
# ==============================================================
# sparc64-rtems4.11-gdb
diff --git a/rtems4.11/v850/rtems-4.11-v850-rtems4.11-binutils.spec b/rtems4.11/v850/rtems-4.11-v850-rtems4.11-binutils.spec
index baa1a01..febd6c6 100644
--- a/rtems4.11/v850/rtems-4.11-v850-rtems4.11-binutils.spec
+++ b/rtems4.11/v850/rtems-4.11-v850-rtems4.11-binutils.spec
@@ -28,8 +28,12 @@
%endif
%ifos cygwin cygwin32
+%if "%{_host}" == "x86_64-pc-cygwin"
+%define optflags -O2 -pipe
+%else
%define optflags -O3 -pipe -march=i486 -funroll-loops
%endif
+%endif
%ifos mingw mingw32
%if %{defined _mingw32_cflags}
@@ -186,7 +190,7 @@ sed -e 's,^\s*/usr/lib/rpm.*/brp-strip,./brp-strip,' \
%define __os_install_post . ./os_install_post
%clean
- rm -rf $RPM_BUILD_ROOT
+ %{?el5:rm -rf $RPM_BUILD_ROOT}
# ==============================================================
# v850-rtems4.11-binutils
diff --git a/rtems4.11/v850/rtems-4.11-v850-rtems4.11-gcc.spec b/rtems4.11/v850/rtems-4.11-v850-rtems4.11-gcc.spec
index ce9c754..1c66e05 100644
--- a/rtems4.11/v850/rtems-4.11-v850-rtems4.11-gcc.spec
+++ b/rtems4.11/v850/rtems-4.11-v850-rtems4.11-gcc.spec
@@ -28,8 +28,12 @@
%endif
%ifos cygwin cygwin32
+%if "%{_host}" == "x86_64-pc-cygwin"
+%define optflags -O2 -pipe
+%else
%define optflags -O3 -pipe -march=i486 -funroll-loops
%endif
+%endif
%ifos mingw mingw32
%if %{defined _mingw32_cflags}
@@ -416,6 +420,7 @@ echo "RTEMS gcc-%{gcc_version}-3%{?dist}/newlib-%{newlib_version}-29%{?dist}" >
--enable-threads \
%{?with_lto:--enable-lto}%{!?with_lto:--disable-lto} \
%{?with_plugin:--enable-plugin}%{!?with_plugin:--disable-plugin} \
+ %{?gcc_options:%gcc_options} \
--enable-newlib-io-c99-formats \
%{?with_iconv:--enable-newlib-iconv} \
--enable-languages="$languages"
@@ -562,6 +567,7 @@ echo "RTEMS gcc-%{gcc_version}-3%{?dist}/newlib-%{newlib_version}-29%{?dist}" >
%{!?with_pygdb:*/libstdc++*gdb.py*) rm ${RPM_BUILD_ROOT}/$i ;;} # ignore for now
%{?with_pygdb:*/libstdc++*gdb.py*) >> build/files.g++ ;;}
*/libstdc++.*) echo "$i" >> build/files.g++ ;;
+ */cygstdc++*.dll) echo "$i" >> build/files.g++ ;;
*/libsupc++.*) echo "$i" >> build/files.g++ ;;
*) echo "$i" >> build/files.gcc ;;
esac
@@ -647,7 +653,7 @@ sed -e 's,^[ ]*/usr/lib/rpm/find-debuginfo.sh,./find-debuginfo.sh,' \
%endif
%clean
- rm -rf $RPM_BUILD_ROOT
+ %{?el5:rm -rf $RPM_BUILD_ROOT}
# ==============================================================
# rtems-4.11-v850-rtems4.11-gcc
diff --git a/rtems4.11/v850/rtems-4.11-v850-rtems4.11-gdb.spec b/rtems4.11/v850/rtems-4.11-v850-rtems4.11-gdb.spec
index 8a3ea6d..64cf331 100644
--- a/rtems4.11/v850/rtems-4.11-v850-rtems4.11-gdb.spec
+++ b/rtems4.11/v850/rtems-4.11-v850-rtems4.11-gdb.spec
@@ -28,8 +28,12 @@
%endif
%ifos cygwin cygwin32
+%if "%{_host}" == "x86_64-pc-cygwin"
+%define optflags -O2 -pipe
+%else
%define optflags -O3 -pipe -march=i486 -funroll-loops
%endif
+%endif
%ifos mingw mingw32
%if %{defined _mingw32_cflags}
@@ -244,7 +248,7 @@ sed -e 's,^\s*/usr/lib/rpm.*/brp-strip,./brp-strip,' \
%define __os_install_post . ./os_install_post
%clean
- rm -rf $RPM_BUILD_ROOT
+ %{?el5:rm -rf $RPM_BUILD_ROOT}
# ==============================================================
# v850-rtems4.11-gdb
More information about the vc
mailing list