mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-06 15:45:00 +00:00
configure: Use -fvisibility=hidden when building with msvcrt and cross compiler is not available.
This commit is contained in:
parent
11afc2da02
commit
9285aa5bb1
28
configure
vendored
28
configure
vendored
|
@ -19387,6 +19387,34 @@ printf "%s\n" "$ac_cv_cflags__fshort_wchar" >&6; }
|
||||||
if test "x$ac_cv_cflags__fshort_wchar" = xyes
|
if test "x$ac_cv_cflags__fshort_wchar" = xyes
|
||||||
then :
|
then :
|
||||||
MSVCRTFLAGS="$MSVCRTFLAGS -fshort-wchar"
|
MSVCRTFLAGS="$MSVCRTFLAGS -fshort-wchar"
|
||||||
|
fi
|
||||||
|
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fvisibility=hidden" >&5
|
||||||
|
printf %s "checking whether the compiler supports -fvisibility=hidden... " >&6; }
|
||||||
|
if test ${ac_cv_cflags__fvisibility_hidden+y}
|
||||||
|
then :
|
||||||
|
printf %s "(cached) " >&6
|
||||||
|
else $as_nop
|
||||||
|
ac_wine_try_cflags_saved=$CFLAGS
|
||||||
|
CFLAGS="$CFLAGS -fvisibility=hidden"
|
||||||
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
||||||
|
/* end confdefs.h. */
|
||||||
|
int main(int argc, char **argv) { return 0; }
|
||||||
|
_ACEOF
|
||||||
|
if ac_fn_c_try_link "$LINENO"
|
||||||
|
then :
|
||||||
|
ac_cv_cflags__fvisibility_hidden=yes
|
||||||
|
else $as_nop
|
||||||
|
ac_cv_cflags__fvisibility_hidden=no
|
||||||
|
fi
|
||||||
|
rm -f core conftest.err conftest.$ac_objext conftest.beam \
|
||||||
|
conftest$ac_exeext conftest.$ac_ext
|
||||||
|
CFLAGS=$ac_wine_try_cflags_saved
|
||||||
|
fi
|
||||||
|
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fvisibility_hidden" >&5
|
||||||
|
printf "%s\n" "$ac_cv_cflags__fvisibility_hidden" >&6; }
|
||||||
|
if test "x$ac_cv_cflags__fvisibility_hidden" = xyes
|
||||||
|
then :
|
||||||
|
MSVCRTFLAGS="$MSVCRTFLAGS -fvisibility=hidden"
|
||||||
fi
|
fi
|
||||||
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wno-format" >&5
|
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wno-format" >&5
|
||||||
printf %s "checking whether the compiler supports -Wno-format... " >&6; }
|
printf %s "checking whether the compiler supports -Wno-format... " >&6; }
|
||||||
|
|
|
@ -1912,6 +1912,7 @@ char*f(const char *h,char n) {return strchr(h,n);}]])],[ac_cv_c_logicalop_noisy=
|
||||||
*) MSVCRTFLAGS="-D_WIN32"
|
*) MSVCRTFLAGS="-D_WIN32"
|
||||||
WINE_TRY_CFLAGS([-fno-builtin],[MSVCRTFLAGS="$MSVCRTFLAGS -fno-builtin"])
|
WINE_TRY_CFLAGS([-fno-builtin],[MSVCRTFLAGS="$MSVCRTFLAGS -fno-builtin"])
|
||||||
WINE_TRY_CFLAGS([-fshort-wchar],[MSVCRTFLAGS="$MSVCRTFLAGS -fshort-wchar"])
|
WINE_TRY_CFLAGS([-fshort-wchar],[MSVCRTFLAGS="$MSVCRTFLAGS -fshort-wchar"])
|
||||||
|
WINE_TRY_CFLAGS([-fvisibility=hidden],[MSVCRTFLAGS="$MSVCRTFLAGS -fvisibility=hidden"])
|
||||||
WINE_TRY_CFLAGS([-Wno-format],[MSVCRTFLAGS="$MSVCRTFLAGS -Wno-format"]) ;;
|
WINE_TRY_CFLAGS([-Wno-format],[MSVCRTFLAGS="$MSVCRTFLAGS -Wno-format"]) ;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue