From patchwork Fri Oct 15 23:11:03 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [mingw] : Keep inhibit_libc set to false on cross-compilation of mingw targets Date: Fri, 15 Oct 2010 13:11:03 -0000 From: Dave Korn X-Patchwork-Id: 68006 Message-Id: <4CB8DF87.8020105@gmail.com> To: Kai Tietz Cc: GCC Patches 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 which ought to be just the same as testing $target only. cheers, DaveK --- 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" ;;