Hi,
a more compact implementation of this workaround committed:
Committed revision 34389.
--- package/base/file/file.conf (revision 34388)
+++ package/base/file/file.conf (revision 34389)
@@ -12,4 +12,7 @@
# GNU General Public License can be found in the file COPYING.
# --- T2-COPYRIGHT-NOTE-END ---
+# The older compilers (GCC 3.X), e.g. SuSE 9.2 do not support -Wextra
+atstage toolchain && var_append SYSCC_WRAPPER_REMOVE ' ' '-Wextra'
+
[ "$SDECFG_STATIC" == "0" ] || var_append confopt ' ' '--enable-
shared=no'
On 24.08.2009, at 23:34, Jan Rovins wrote:
Hi,
I am building T2 projects on a SuSe 9.2 host, and a had to change
the file project to get it to build.
===================================================================
--- file.conf (revision 34043)
+++ file.conf (working copy)
@@ -13,3 +13,18 @@
# --- T2-COPYRIGHT-NOTE-END ---
[ "$SDECFG_STATIC" == "0" ] || var_append confopt ' ' '--enable-
shared=no'
+
+#
+# when building on a non-T2 based host, we may have an older GCC
during stage 0
+# such is the case with Suse 9.2. The older compilers (GCC 3.X) do
not like
+# the -Wextra parameter in this project. to avoid this, kill the
warnings during
+# stage 0
+#
+if atstage toolchain; then
+ gcc_ver=`$CC -dumpversion 2> /dev/null`
+ case "$gcc_ver" in
+ 2.*) var_append confopt ' ' '--enable-warnings=no' ;;
+ 3.*) var_append confopt ' ' '--enable-warnings=no' ;;
+ *) ;;
+ esac
+fi
----------------------------------------------------------- If you
wish to unsubscribe from this mailing, send mail to
[email protected] with a subject of: unsubscribe t2
--
René Rebe, ExactCODE GmbH, Jaegerstr. 67, DE-10117 Berlin
DE Legal: Amtsgericht Charlottenburg HRB 105123B, Tax-ID#:
DE251602478
Managing Directors: Susanne Klaus, René Rebe
http://exactcode.com | http://t2-project.org | http://rene.rebe.name
-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
[email protected] with a subject of: unsubscribe t2