From 5420ec4781a8573bf3b0ff0d7ff7ab031d937cbb Mon Sep 17 00:00:00 2001 From: Kirill Smelkov Date: Tue, 3 Feb 2004 00:09:09 +0000 Subject: [PATCH] Try to use -fshort-wchar if possible. --- tools/winemaker | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/tools/winemaker b/tools/winemaker index aac82475d06..9e2f85d5672 100755 --- a/tools/winemaker +++ b/tools/winemaker @@ -2556,6 +2556,14 @@ then [has_gxx_no_for_scope="yes"], [has_gxx_no_for_scope="no"]) ) + CXXFLAGS="-fshort-wchar"; + AC_CACHE_CHECK([for g++ -fshort-wchar option], has_gxx_short_wchar, + AC_TRY_COMPILE(,[ + ; + ], + [has_gxx_short_wchar="yes"], + [has_gxx_short_wchar="no"]) + ) CXXFLAGS="$OLDCXXFLAGS"; if test "$has_gxx_permissive" = "yes" then @@ -2569,6 +2577,10 @@ then then CXXFLAGS="$CXXFLAGS -fno-for-scope" fi + if test "$has_gxx_short_wchar" = "yes" + then + CXXFLAGS="$CXXFLAGS -fshort-wchar" + fi fi AC_LANG_C()