summaryrefslogtreecommitdiffstats
path: root/winsup/mingw/configure
diff options
context:
space:
mode:
Diffstat (limited to 'winsup/mingw/configure')
-rwxr-xr-xwinsup/mingw/configure34
1 files changed, 11 insertions, 23 deletions
diff --git a/winsup/mingw/configure b/winsup/mingw/configure
index f304b3519..15708528e 100755
--- a/winsup/mingw/configure
+++ b/winsup/mingw/configure
@@ -1665,35 +1665,20 @@ SUBDIRS=""
HEADER_SUBDIR=""
case "$target_os" in
-*mingw32msvc*)
- CRT_ID=2
- MNO_CYGWIN=
- RUNTIME=msvcrt
- THREAD_DLL=mingwm
- LIBM_A=libm.a
- LIBGMON_A=libgmon.a
- SUBDIRS="profile"
- configdirs="$configdirs profile"
- ;;
*cygwin*)
- CRT_ID=1
MNO_CYGWIN=-mno-cygwin
- RUNTIME=crtdll
- THREAD_DLL=mingwc
configdirs="$configdirs"
+ # FIXME MinGW versions of libm.a and libgmon.a needed for -mno-cygwin
# Do not build libm.a when building under Cygwin winsup. Otherwise, it'll
# overwrite Cygwin's one. Likewise for libgmon.a.
LIBM_A=
LIBGMON_A=
# Install mingw headers in mingw subdirectory.
- HEADER_SUBDIR="mingw32"
+ HEADER_SUBDIR="mingw"
;;
*)
- # Build it for CRTDLL by default.
- CRT_ID=1
+ # Build it for MSVCRT by default.
MNO_CYGWIN=
- RUNTIME=crtdll
- THREAD_DLL=mingwc
LIBM_A=libm.a
LIBGMON_A=libgmon.a
SUBDIRS="profile"
@@ -1701,6 +1686,13 @@ case "$target_os" in
;;
esac
+# THREAD_DLL used to be set within the above case and was mingwc for CRTDLL.
+# I can find no reason to do this.
+#
+# FIXME: In the future I would like to change the dll name to mingwthrd to
+# to match the libmingwthrd.a name.
+THREAD_DLL=mingwm
+
if test -n "$configdirs"; then
subdirs="$configdirs"
@@ -1715,8 +1707,6 @@ MKINSTALLDIRS=$ac_aux_dir/mkinstalldirs
-
-
# Find a good install program. We prefer a C program (faster),
# so one script is as good as another. But avoid the broken or
# incompatible versions:
@@ -1729,7 +1719,7 @@ MKINSTALLDIRS=$ac_aux_dir/mkinstalldirs
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
# ./install, which can be erroneously created by make from ./install.sh.
echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
-echo "configure:1733: checking for a BSD compatible install" >&5
+echo "configure:1723: checking for a BSD compatible install" >&5
if test -z "$INSTALL"; then
if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
@@ -1955,8 +1945,6 @@ s%@target_vendor@%$target_vendor%g
s%@target_os@%$target_os%g
s%@subdirs@%$subdirs%g
s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
-s%@CRT_ID@%$CRT_ID%g
-s%@RUNTIME@%$RUNTIME%g
s%@MNO_CYGWIN@%$MNO_CYGWIN%g
s%@THREAD_DLL@%$THREAD_DLL%g
s%@LIBM_A@%$LIBM_A%g