Try to use -fshort-wchar if possible.
This commit is contained in:
parent
df0ddd4a96
commit
5420ec4781
|
@ -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()
|
||||
|
||||
|
|
Loading…
Reference in New Issue