This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [patch mingw]: Keep inhibit_libc set to false on cross-compilation of mingw targets
On 15/10/2010 22:43, Kai Tietz wrote:
>>> + case $target in
>>> + *-*-mingw*)
>>> + if test "x$with_headers" = x; then
>>> + with_headers=yes
>>> + fi
>>> + ;;
>>> + *)
>>> + ;;
>>> + esac
>> No need to add a whole new case statement, if you want to match on target
>> only then match the pattern ",*-*-mingw*" in case "$host","$target" above.
> Well, this I thought first too, but then It would be just for x86_64
> host targetting i?86, which isn't what I want here.
I don't see why that would happen? I'm thinking of something like this:
$ diff -pu configure.ac .cf
--- configure.ac 2010-10-14 05:10:03.359375000 +0100
+++ .cf 2010-10-16 00:09:47.921875000 +0100
@@ -1735,6 +1735,11 @@ then
fi
;;
+ *,*-*-mingw*)
+ if test "x$with_headers" = x; then
+ with_headers=yes
+ fi
+ ;;
i?86-*-*,x86_64-*-* \
| powerpc*-*-*,powerpc64*-*-*)
CROSS="$CROSS -DNATIVE_CROSS" ;;
which ought to be just the same as testing $target only.
cheers,
DaveK