]> granicus.if.org Git - libatomic_ops/commitdiff
Support MSYS host (configure)
authorAlexey Pavlov <alexpux@gmail.com>
Mon, 10 Dec 2018 12:39:32 +0000 (15:39 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Mon, 25 Mar 2019 14:15:07 +0000 (17:15 +0300)
* configure.ac [$host=*-*-msys*] (PICFLAG): Set to empty.
* configure.ac [$have_pthreads=true && $host=*-*-msys*] (THREADDLLIBS):
Likewise.

configure.ac

index 95ef7568515ac78403b145b32ba308735999f935..51703708cb47a11878082d4849c5f19b0e0ddbd5 100644 (file)
@@ -42,7 +42,7 @@ if test "$GCC" = yes; then
   fi
 
   case "$host" in
-    *-*-cygwin* | *-*-mingw*)
+    *-*-cygwin* | *-*-mingw* | *-*-msys*)
       # Cygwin and Mingw[-w32/64] do not need -fPIC.
       AC_MSG_RESULT([not needed])
       ;;
@@ -219,7 +219,7 @@ if test x$have_pthreads = xtrue; then
       # against it.
       THREADDLLIBS=
       ;;
-    *-*-mingw*)
+    *-*-mingw* | *-*-msys*)
       # Use Win32 threads for tests anyway.
       THREADDLLIBS=
       # Skip test_atomic_pthreads.