* config.sub: Add mingw32 support.
* configure.in: Likewise. * mh-mingw32: New file.
This commit is contained in:
parent
c49f612a68
commit
0b0bd98b80
|
@ -49,6 +49,7 @@ mh-irix6
|
||||||
mh-lynxos
|
mh-lynxos
|
||||||
mh-lynxrs6k
|
mh-lynxrs6k
|
||||||
mh-m68kpic
|
mh-m68kpic
|
||||||
|
mh-mingw32
|
||||||
mh-ncr3000
|
mh-ncr3000
|
||||||
mh-ncrsvr43
|
mh-ncrsvr43
|
||||||
mh-necv4
|
mh-necv4
|
||||||
|
|
|
@ -0,0 +1,12 @@
|
||||||
|
# We don't want debugging info in Win32-hosted toolchains.
|
||||||
|
# Accomplish this by overriding CFLAGS.
|
||||||
|
CFLAGS=-O2
|
||||||
|
CXXFLAGS=-O2
|
||||||
|
|
||||||
|
# We also need to override LIBGCC2_DEBUG_CFLAGS so libgcc2 will be
|
||||||
|
# built without debugging information
|
||||||
|
|
||||||
|
LIBGCC2_DEBUG_CFLAGS=
|
||||||
|
|
||||||
|
# custom installation rules for mingw32 (append .exe to binaries, etc.)
|
||||||
|
# INSTALL_DOSREL=install-dosrel
|
24
configure.in
24
configure.in
|
@ -188,6 +188,9 @@ case "${host}" in
|
||||||
*-cygwin32*)
|
*-cygwin32*)
|
||||||
host_makefile_frag="${host_makefile_frag} config/mh-cygwin32"
|
host_makefile_frag="${host_makefile_frag} config/mh-cygwin32"
|
||||||
;;
|
;;
|
||||||
|
*-mingw32*)
|
||||||
|
host_makefile_frag="${host_makefile_frag} config/mh-mingw32"
|
||||||
|
;;
|
||||||
*-windows*)
|
*-windows*)
|
||||||
host_makefile_frag="${host_makefile_frag} config/mh-windows"
|
host_makefile_frag="${host_makefile_frag} config/mh-windows"
|
||||||
;;
|
;;
|
||||||
|
@ -470,6 +473,8 @@ done
|
||||||
case "${host}" in
|
case "${host}" in
|
||||||
i[3456]86-*-go32*)
|
i[3456]86-*-go32*)
|
||||||
configdirs="$configdirs dosrel" ;;
|
configdirs="$configdirs dosrel" ;;
|
||||||
|
i[3456]86-*-mingw32*)
|
||||||
|
configdirs="$configdirs dosrel" ;;
|
||||||
*-cygwin32*)
|
*-cygwin32*)
|
||||||
configdirs="$configdirs dosrel" ;;
|
configdirs="$configdirs dosrel" ;;
|
||||||
esac
|
esac
|
||||||
|
@ -493,6 +498,10 @@ case "${host}" in
|
||||||
noconfigdirs="$noconfigdirs libide vmake jstools"
|
noconfigdirs="$noconfigdirs libide vmake jstools"
|
||||||
# end-sanitize-ide
|
# end-sanitize-ide
|
||||||
;;
|
;;
|
||||||
|
i[3456]86-*-mingw32*)
|
||||||
|
# noconfigdirs="tcl tk expect dejagnu make texinfo bison patch flex byacc send-pr uudecode dejagnu diff guile perl apache inet itcl tix db sn gnuserv"
|
||||||
|
noconfigdirs="expect dejagnu cvs autoconf automake send-pr gprof rcs guile perl texinfo apache inet"
|
||||||
|
;;
|
||||||
*-*-cygwin32)
|
*-*-cygwin32)
|
||||||
noconfigdirs="expect dejagnu cvssrc autoconf automake send-pr gprof rcs guile perl texinfo apache inet"
|
noconfigdirs="expect dejagnu cvssrc autoconf automake send-pr gprof rcs guile perl texinfo apache inet"
|
||||||
;;
|
;;
|
||||||
|
@ -587,6 +596,17 @@ case "${target}" in
|
||||||
# but don't build gdb
|
# but don't build gdb
|
||||||
noconfigdirs="$noconfigdirs gdb target-libg++ target-libstdc++ target-libio target-librx"
|
noconfigdirs="$noconfigdirs gdb target-libg++ target-libstdc++ target-libio target-librx"
|
||||||
;;
|
;;
|
||||||
|
i[3456]86-*-mingw32*)
|
||||||
|
target_configdirs="$target_configdirs target-mingw"
|
||||||
|
noconfigdirs="$noconfigdirs expect target-libgloss"
|
||||||
|
|
||||||
|
# Can't build gdb for cygwin32 if not native.
|
||||||
|
case "${host}" in
|
||||||
|
i[3456]86-*-mingw32) ;; # keep gdb tcl tk expect etc.
|
||||||
|
*) noconfigdirs="$noconfigdirs gdb tcl tk expect itcl tix db sn gnuserv"
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
;;
|
||||||
*-*-cygwin32)
|
*-*-cygwin32)
|
||||||
target_configdirs="$target_configdirs target-winsup"
|
target_configdirs="$target_configdirs target-winsup"
|
||||||
noconfigdirs="$noconfigdirs expect target-libgloss"
|
noconfigdirs="$noconfigdirs expect target-libgloss"
|
||||||
|
@ -1009,10 +1029,10 @@ if [ "${shared}" = "yes" ]; then
|
||||||
esac
|
esac
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# If we are building for a cygwin32 host, then set INSTALL_PROGRAM_ARGS to
|
# If we are building for a win32 host, then set INSTALL_PROGRAM_ARGS to
|
||||||
# -x. This will cause programs to be installed with .exe extensions.
|
# -x. This will cause programs to be installed with .exe extensions.
|
||||||
case "${host}" in
|
case "${host}" in
|
||||||
*-*-cygwin32*)
|
*-*-cygwin32* | i[3456]86-*-mingw32)
|
||||||
sed -e 's/^INSTALL_PROGRAM_ARGS[ ]*=.*$/INSTALL_PROGRAM_ARGS = -x/' \
|
sed -e 's/^INSTALL_PROGRAM_ARGS[ ]*=.*$/INSTALL_PROGRAM_ARGS = -x/' \
|
||||||
Makefile > Makefile.tem
|
Makefile > Makefile.tem
|
||||||
rm -f Makefile
|
rm -f Makefile
|
||||||
|
|
Loading…
Reference in New Issue