summaryrefslogtreecommitdiffstats
path: root/contrib/crossrpms/common
diff options
context:
space:
mode:
authorRalf Corsepius <ralf.corsepius@rtems.org>2009-01-18 15:15:41 +0000
committerRalf Corsepius <ralf.corsepius@rtems.org>2009-01-18 15:15:41 +0000
commitbdd2eb0a549644ca25aa5f00569660b17720b728 (patch)
treec284ba0a06620ac2e6a703b4192f2a27ce0b90dc /contrib/crossrpms/common
parentAdd freebsd7.1 (diff)
downloadrtems-bdd2eb0a549644ca25aa5f00569660b17720b728.tar.bz2
Add more mingw32 hacks.
Diffstat (limited to 'contrib/crossrpms/common')
-rw-r--r--contrib/crossrpms/common/common.add12
1 files changed, 10 insertions, 2 deletions
diff --git a/contrib/crossrpms/common/common.add b/contrib/crossrpms/common/common.add
index 03a67b6656..29b8debb8b 100644
--- a/contrib/crossrpms/common/common.add
+++ b/contrib/crossrpms/common/common.add
@@ -23,14 +23,22 @@
%ifos cygwin cygwin32 mingw mingw32
%define _exeext .exe
-%define debug_package %{nil}
+%define debug_package %{nil}
+%define _libdir %{_exec_prefix}/lib
%else
%define _exeext %{nil}
%endif
%ifos cygwin cygwin32
%define optflags -O3 -pipe -march=i486 -funroll-loops
-%define _libdir %{_exec_prefix}/lib
+%endif
+
+%ifos mingw mingw32
+%if %{defined _mingw32_cflags}
+%define optflags %{_mingw32_cflags}
+%else
+%define optflags -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4 -mms-bitfields
+%endif
%endif
%if "%{_build}" != "%{_host}"