No gcc flag -fvisibility if MINGW, CYGWIN

Add flag WINCONSOLE to be used in makefile.am
This commit is contained in:
Holger Vogt 2018-11-10 16:31:54 +01:00
parent 9e6d6be8e2
commit 035156be66
1 changed files with 25 additions and 0 deletions

View File

@ -327,6 +327,8 @@ if test "x$with_ngshared" != x && test "x$with_ngshared" != xno ; then
CFLAGS="$CFLAGS -xldscope=hidden"
fi
;;
*mingw* | *msys* | *cygwin* )
;;
*)
CFLAGS="$CFLAGS -fvisibility=hidden"
;;
@ -547,6 +549,29 @@ AC_ARG_WITH([wingui],
AC_MSG_RESULT([$with_wingui])
AM_CONDITIONAL([WINGUI], [test "x$with_wingui" = xyes])
case $host_os in
*mingw* | *msys* )
has_win32=yes
if test "x$with_wingui" = xyes; then
has_winconsole=no
else
if test "x$with_ngshared" = xyes; then
has_winconsole=no
else
has_winconsole=yes
fi
fi
;;
*cygwin* )
has_cyg=yes
;;
*)
has_win32=no
has_cyg=no
;;
esac
AM_CONDITIONAL([WINCONSOLE], [test "x$has_winconsole" = xyes])
case $with_wingui in
yes )
AC_DEFINE([X_DISPLAY_MISSING])