This is the mail archive of the
cygwin-apps
mailing list for the Cygwin project.
Re: ITA: gcc-mingw-* gcc-3 -mno-cygwin support packages; ITP: mingw-binutils/mingw-gcc-* cross compiler
- From: Charles Wilson <cygwin at cwilson dot fastmail dot fm>
- To: Mailing List: CygWin-Apps <cygwin-apps at cygwin dot com>
- Date: Tue, 23 Nov 2010 17:56:19 -0500
- Subject: Re: ITA: gcc-mingw-* gcc-3 -mno-cygwin support packages; ITP: mingw-binutils/mingw-gcc-* cross compiler
- References: <4CEC401E.4060506@cwilson.fastmail.fm>
On 11/23/2010 5:28 PM, Charles Wilson wrote:
> The attached patch does this
> automatically.
>
Yeah, about that...
--
Chuck
? .Tpo
? chuck-doconfigure
? chuck-doconfigure.patch
? doconfigure-old
? yaakov-doconfigure
? yaakov-doconfigure.patch
Index: bootstrap.sh
===================================================================
RCS file: /cvs/cygwin-apps/setup/bootstrap.sh,v
retrieving revision 2.5
diff -u -p -r2.5 bootstrap.sh
--- bootstrap.sh 11 Aug 2010 22:58:51 -0000 2.5
+++ bootstrap.sh 23 Nov 2010 22:55:44 -0000
@@ -55,14 +55,18 @@ host="i686-pc-mingw32"
if hash $host-g++ 2> /dev/null; then
CC="$host-gcc"
CXX="$host-g++"
+ cppflags=
+ ldflags=
else
CC="gcc-3 -mno-cygwin"
CXX="g++-3 -mno-cygwin"
+ cppflags="CPPFLAGS=-I/usr/i686-pc-mingw32/sys-root/mingw/include"
+ ldflags="LDFLAGS=-L/usr/i686-pc-mingw32/sys-root/mingw/lib"
fi
echo "running configure"
$srcdir/configure -C --enable-maintainer-mode \
--build=$build --host=$host CC="$CC" CXX="$CXX" \
- "$@"
+ ${cppflags} ${ldflags} "$@"
exit $?