Files
MSYS2-packages/gc/gc-8.0-msys2.patch
2018-09-26 07:19:47 +03:00

39 lines
1.5 KiB
Diff

--- a/configure.ac.orig 2018-09-05 09:37:07.000000000 +0200
+++ a/configure.ac 2018-09-15 11:35:20.528618600 +0200
@@ -196,7 +196,7 @@
default_threadlibs=false
# Common defines for most POSIX platforms.
case "$host" in
- *-*-aix* | *-*-android* | *-*-cygwin* | *-*-darwin* | *-*-dragonfly* | \
+ *-*-aix* | *-*-android* | *-*-cygwin* | *-*-msys* | *-*-darwin* | *-*-dragonfly* | \
*-*-freebsd* | *-*-haiku* | *-*-hpux11* | *-*-irix* | \
*-*-kfreebsd*-gnu | *-*-gnu* | *-*-*linux* | *-*-nacl* | \
*-*-netbsd* | *-*-openbsd* | *-*-osf* | *-*-solaris*)
@@ -243,7 +243,7 @@
*-*-solaris*)
THREADDLLIBS="-lpthread -lrt"
;;
- *-*-cygwin*)
+ *-*-cygwin* | *-*-msys*)
# Cygwin doesn't have a real libpthread, so Libtool can't link
# against it.
THREADDLLIBS=""
@@ -459,7 +459,7 @@
# We never want libdl on darwin. It is a fake libdl that just ends up making
# dyld calls anyway. The same applies to Cygwin.
*-*-darwin*) ;;
- *-*-cygwin*) ;;
+ *-*-cygwin* | *-*-msys*) ;;
*)
AC_CHECK_LIB(dl, dlopen, THREADDLLIBS="$THREADDLLIBS -ldl")
;;
@@ -520,7 +520,7 @@
if test "$GCC" = yes; then
if test "${enable_cplusplus}" = yes; then
case "$host" in
- *-*-cygwin* | *-*-mingw*)
+ *-*-cygwin* | *-*-msys* | *-*-mingw*)
AC_MSG_CHECKING([whether libsupc++ required])
SUPC="`$CXX -print-file-name=libsupc++.a 2>/dev/null`"
if test -n "$SUPC" -a "$SUPC" != "libsupc++.a"; then