* Makefile.in: Use a different method to invoke gcc in a cygwin-hosted

environment.
* mingwex/Makefile.in: Ditto.
* profile/Makefile.in: Ditto.
* configure.in: Record mingw front-end for building under Cygwin.
* mingwex/configure.in: Ditto.
* profile/configure.in: Ditto.
* configure: Regenerate.
* mingwex/configure: Ditto.
* profile/configure: Ditto.
This commit is contained in:
Christopher Faylor 2008-10-12 23:58:17 +00:00
parent 391f2a8eed
commit a7844a1841
10 changed files with 6426 additions and 4040 deletions

View File

@ -1,3 +1,16 @@
2008-10-12 Christopher Faylor <me+cygwin@cgf.cx>
* Makefile.in: Use a different method to invoke gcc in a cygwin-hosted
environment.
* mingwex/Makefile.in: Ditto.
* profile/Makefile.in: Ditto.
* configure.in: Record mingw front-end for building under Cygwin.
* mingwex/configure.in: Ditto.
* profile/configure.in: Ditto.
* configure: Regenerate.
* mingwex/configure: Ditto.
* profile/configure: Ditto.
2008-10-11 Keith Marshall <keithmarshall@users.sourceforge.net> 2008-10-11 Keith Marshall <keithmarshall@users.sourceforge.net>
Use de-facto standard Makefile goals to invoke test suite. Use de-facto standard Makefile goals to invoke test suite.

View File

@ -104,11 +104,9 @@ CFLAGS = @CFLAGS@
CXXFLAGS = @CXXFLAGS@ CXXFLAGS = @CXXFLAGS@
# compiling with Cygwin? # compiling with Cygwin?
MNO_CYGWIN = @MNO_CYGWIN@ NO_CYGWIN := @NO_CYGWIN@
ifdef MNO_CYGWIN ifdef NO_CYGWIN
subdirforlib=/mingw override CC := ${NO_CYGWIN} $(firstword ${CC})
else
libdir=
endif endif
# Either crtdll (CRT_ID 1) or msvcrt (CRT_ID 2). # Either crtdll (CRT_ID 1) or msvcrt (CRT_ID 2).
@ -128,8 +126,8 @@ INCLUDES = -I$(srcdir)/include \
-I$(srcdir)/../include \ -I$(srcdir)/../include \
-nostdinc \ -nostdinc \
-iwithprefixbefore include -iwithprefixbefore include
ALL_CFLAGS = $(CFLAGS) $(INCLUDES) $(W32API_INCLUDE) $(MNO_CYGWIN) ALL_CFLAGS = $(CFLAGS) $(INCLUDES) $(W32API_INCLUDE)
ALL_CXXFLAGS = $(CXXFLAGS) $(INCLUDES) -nostdinc++ $(W32API_INCLUDE) $(MNO_CYGWIN) ALL_CXXFLAGS = $(CXXFLAGS) $(INCLUDES) -nostdinc++ $(W32API_INCLUDE)
AS = @AS@ AS = @AS@
AR = @AR@ AR = @AR@

4573
winsup/mingw/configure vendored

File diff suppressed because it is too large Load Diff

View File

@ -51,14 +51,14 @@ W32API_INCLUDE='-I $(srcdir)/../w32api/include'
case "$target_os" in case "$target_os" in
*cygwin*) *cygwin*)
MNO_CYGWIN=-mno-cygwin NO_CYGWIN="$(cd ${srcdir}/../utils; pwd)/mingw"
LIBM_A=libm.a LIBM_A=libm.a
# Install mingw headers in mingw subdirectory. # Install mingw headers in mingw subdirectory.
HEADER_SUBDIR="mingw" HEADER_SUBDIR="mingw"
;; ;;
*) *)
# Build it for MSVCRT by default. # Build it for MSVCRT by default.
MNO_CYGWIN= NO_CYGWIN=
LIBM_A=libm.a LIBM_A=libm.a
;; ;;
esac esac
@ -71,7 +71,7 @@ esac
AC_SUBST([THREAD_DLL], [mingwm]) AC_SUBST([THREAD_DLL], [mingwm])
AC_SUBST([MKINSTALLDIRS], [$ac_aux_dir/mkinstalldirs]) AC_SUBST([MKINSTALLDIRS], [$ac_aux_dir/mkinstalldirs])
AC_SUBST([MNO_CYGWIN]) AC_SUBST([NO_CYGWIN])
AC_SUBST([LIBM_A]) AC_SUBST([LIBM_A])
AC_SUBST([LIBGMON_A]) AC_SUBST([LIBGMON_A])
AC_SUBST([HEADER_SUBDIR]) AC_SUBST([HEADER_SUBDIR])

View File

@ -106,14 +106,17 @@ WARNFLAGS = -Wall
# compiling with Cygwin? # compiling with Cygwin?
MNO_CYGWIN = @MNO_CYGWIN@ NO_CYGWIN := @NO_CYGWIN@
ifdef NO_CYGWIN
override CC := ${NO_CYGWIN} $(firstword $(filter-out ${NO_CYGWIN},${CC}))
endif
W32API_INCLUDE = @W32API_INCLUDE@ W32API_INCLUDE = @W32API_INCLUDE@
INCLUDES = -I$(srcdir) -I$(srcdir)/.. -I$(srcdir)/../include \ INCLUDES = -I$(srcdir) -I$(srcdir)/.. -I$(srcdir)/../include \
-nostdinc \ -nostdinc \
-iwithprefixbefore include -iwithprefixbefore include
ALL_CFLAGS = $(CFLAGS) $(WARNFLAGS) $(OPTFLAGS) $(INCLUDES) $(W32API_INCLUDE) $(MNO_CYGWIN) ALL_CFLAGS = $(CFLAGS) $(WARNFLAGS) $(OPTFLAGS) $(INCLUDES) $(W32API_INCLUDE)
ALL_CXXFLAGS = $(CXXFLAGS) $(WARNFLAGS) $(OPTFLAGS) $(INCLUDES) -nostdinc++ $(W32API_INCLUDE) $(MNO_CYGWIN) ALL_CXXFLAGS = $(CXXFLAGS) $(WARNFLAGS) $(OPTFLAGS) $(INCLUDES) -nostdinc++ $(W32API_INCLUDE)
AS = @AS@ AS = @AS@
AR = @AR@ AR = @AR@

File diff suppressed because it is too large Load Diff

View File

@ -37,15 +37,15 @@ AC_CANONICAL_SYSTEM
case "$target_os" in case "$target_os" in
*cygwin*) *cygwin*)
MNO_CYGWIN=-mno-cygwin NO_CYGWIN="$(cd ${srcdir}/../../utils; pwd)/mingw"
;; ;;
*) *)
# Build it for MSVCRT by default. # Build it for MSVCRT by default.
MNO_CYGWIN= NO_CYGWIN=
;; ;;
esac esac
AC_SUBST(MNO_CYGWIN) AC_SUBST(NO_CYGWIN)
W32API_INCLUDE='-I $(srcdir)/../../w32api/include' W32API_INCLUDE='-I $(srcdir)/../../w32api/include'
AC_SUBST(W32API_INCLUDE) AC_SUBST(W32API_INCLUDE)

View File

@ -36,7 +36,10 @@ CFLAGS = @CFLAGS@
CXXFLAGS = @CXXFLAGS@ CXXFLAGS = @CXXFLAGS@
# compiling with Cygwin? # compiling with Cygwin?
MNO_CYGWIN = @MNO_CYGWIN@ NO_CYGWIN := @NO_CYGWIN@
ifdef NO_CYGWIN
override CC := ${NO_CYGWIN} $(firstword $(filter-out ${NO_CYGWIN},${CC}))
endif
# Either crtdll (CRT_ID 1) or msvcrt (CRT_ID 2). # Either crtdll (CRT_ID 1) or msvcrt (CRT_ID 2).
RUNTIME = @RUNTIME@ RUNTIME = @RUNTIME@
@ -51,8 +54,8 @@ W32API_INCLUDE = @W32API_INCLUDE@
INCLUDES = -I$(srcdir) -I$(srcdir)/../include \ INCLUDES = -I$(srcdir) -I$(srcdir)/../include \
-nostdinc \ -nostdinc \
-iwithprefixbefore include -iwithprefixbefore include
ALL_CFLAGS = $(CFLAGS) $(INCLUDES) $(W32API_INCLUDE) $(MNO_CYGWIN) ALL_CFLAGS = $(CFLAGS) $(INCLUDES) $(W32API_INCLUDE)
ALL_CXXFLAGS = $(CXXFLAGS) $(INCLUDES) -nostdinc++ $(W32API_INCLUDE) $(MNO_CYGWIN) ALL_CXXFLAGS = $(CXXFLAGS) $(INCLUDES) -nostdinc++ $(W32API_INCLUDE)
AS = @AS@ AS = @AS@
AR = @AR@ AR = @AR@

File diff suppressed because it is too large Load Diff

View File

@ -40,13 +40,13 @@ LIBGMON_A=libgmon.a
case "$target_os" in case "$target_os" in
*mingw32crt*) *mingw32crt*)
CRT_ID=1 CRT_ID=1
MNO_CYGWIN= NO_CYGWIN=
RUNTIME=crtdll RUNTIME=crtdll
CRT0S="gcrt1.o gcrt2.o" CRT0S="gcrt1.o gcrt2.o"
;; ;;
*cygwin*) *cygwin*)
CRT_ID=2 CRT_ID=2
MNO_CYGWIN=-mno-cygwin NO_CYGWIN="$(cd ${srcdir}/../../utils; pwd)/mingw"
RUNTIME=msvcrt RUNTIME=msvcrt
CRT0S=gcrt0.o CRT0S=gcrt0.o
# Do not build libm.a when building under Cygwin winsup. Otherwise, it'll # Do not build libm.a when building under Cygwin winsup. Otherwise, it'll
@ -55,7 +55,7 @@ case "$target_os" in
*) *)
# Build it for MSVCRT by default. # Build it for MSVCRT by default.
CRT_ID=2 CRT_ID=2
MNO_CYGWIN= NO_CYGWIN=
RUNTIME=msvcrt RUNTIME=msvcrt
CRT0S="gcrt1.o gcrt2.o" CRT0S="gcrt1.o gcrt2.o"
;; ;;
@ -65,7 +65,7 @@ W32API_INCLUDE='-I $(srcdir)/../../w32api/include'
AC_SUBST(CRT_ID) AC_SUBST(CRT_ID)
AC_SUBST(RUNTIME) AC_SUBST(RUNTIME)
AC_SUBST(MNO_CYGWIN) AC_SUBST(NO_CYGWIN)
AC_SUBST(LIBGMON_A) AC_SUBST(LIBGMON_A)
AC_SUBST(CRT0S) AC_SUBST(CRT0S)
AC_SUBST(W32API_INCLUDE) AC_SUBST(W32API_INCLUDE)