gcc and mno-cygwin tweaks on cygwin/mingw
This commit is contained in:
parent
af06a48430
commit
a57302527a
1 changed files with 14 additions and 4 deletions
18
configure.ac
18
configure.ac
|
|
@ -1144,12 +1144,22 @@ else
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
case $host in
|
||||||
|
*-*-cygwin*)
|
||||||
|
# TODO: Only use this flag if the compiler supports it, later versions of gcc no longer have it
|
||||||
|
GCC_MNO_CYGWIN=" -mno-cygwin"
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
GCC_MNO_CYGWIN=""
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
# java.exe on Cygwin requires the Windows standard (Pascal) calling convention as it is a normal Windows executable and not a Cygwin built executable
|
# java.exe on Cygwin requires the Windows standard (Pascal) calling convention as it is a normal Windows executable and not a Cygwin built executable
|
||||||
case $host in
|
case $host in
|
||||||
*-*-cygwin* | *-*-mingw*)
|
*-*-cygwin* | *-*-mingw*)
|
||||||
if test "$GCC" = yes; then
|
if test "$GCC" = yes; then
|
||||||
JAVADYNAMICLINKING=" -mno-cygwin -mthreads -Wl,--add-stdcall-alias"
|
JAVADYNAMICLINKING="$GCC_MNO_CYGWIN -mthreads -Wl,--add-stdcall-alias"
|
||||||
JAVACFLAGS="-mno-cygwin -mthreads"
|
JAVACFLAGS="$GCC_MNO_CYGWIN -mthreads"
|
||||||
else
|
else
|
||||||
JAVADYNAMICLINKING=""
|
JAVADYNAMICLINKING=""
|
||||||
JAVACFLAGS=""
|
JAVACFLAGS=""
|
||||||
|
|
@ -2032,8 +2042,8 @@ fi
|
||||||
case $host in
|
case $host in
|
||||||
*-*-cygwin* | *-*-mingw*)
|
*-*-cygwin* | *-*-mingw*)
|
||||||
if test "$GCC" = yes; then
|
if test "$GCC" = yes; then
|
||||||
CSHARPDYNAMICLINKING=" -mno-cygwin -mthreads -Wl,--add-stdcall-alias"
|
CSHARPDYNAMICLINKING="$GCC_MNO_CYGWIN -mthreads -Wl,--add-stdcall-alias"
|
||||||
CSHARPCFLAGS="-mno-cygwin -mthreads"
|
CSHARPCFLAGS="$GCC_MNO_CYGWIN -mthreads"
|
||||||
else
|
else
|
||||||
CSHARPDYNAMICLINKING=""
|
CSHARPDYNAMICLINKING=""
|
||||||
CSHARPCFLAGS=""
|
CSHARPCFLAGS=""
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue