Re: config.guess: On Windows, support MSVC (cl.exe), probably wrapped.

2017-04-19 Thread Ben Elliston
On Wed, Apr 19, 2017 at 07:40:30PM +0200, Michael Haubenwallner wrote: > Subject: [PATCH] * config.guess: Support MSVC compiler on Windows. Why aren't you just running uname? There's no need to run a compiler to determine the machine architecture. Ben __

config.guess: On Windows, support MSVC (cl.exe), probably wrapped.

2017-04-19 Thread Michael Haubenwallner
Thanks! /haubi/ >From 276322edfce1265e2567fcf20bbcc926f6dc97e4 Mon Sep 17 00:00:00 2001 From: Michael Haubenwallner Date: Wed, 19 Apr 2017 19:24:54 +0200 Subject: [PATCH] * config.guess: Support MSVC compiler on Windows. On Windows, each POSIX-like subsystem or addon is able to run the native MSV

Re: Patch for config.guess for "cross-compiling" x86_64 -> powerpc on Mac OS X <= 10.6

2017-04-19 Thread Bruno Haible
Mojca Miklavec writes: > > - The patch is complete: When you compile with "gcc -arch ppc64" you > > get executables of type 'Mach-O 64-bit executable ppc64' but such > > files are not directly executable on x86_64 Mac OS X 10.5.8: > > $ ./a.out > > -bash: ./a.out: Bad CPU type

Re: CC vs. CFLAGS

2017-04-19 Thread Bruno Haible
Mojca Miklavec writes: > I'm still slightly confused about something else in that case. In the > past I always used > > CC=gcc > CFLAGS="-arch ppc" > > when compiling for another architecture. The GNU standards [1][2] don't give an answer to this, but the Autoconf manual [3] does. I rou

Re: Patch for config.guess for "cross-compiling" x86_64 -> powerpc on Mac OS X <= 10.6

2017-04-19 Thread Mojca Miklavec
On 19 April 2017 at 03:52, Bruno Haible wrote: > The patch looks good to me: Thank you. > - The patch is complete: When you compile with "gcc -arch ppc64" you > get executables of type 'Mach-O 64-bit executable ppc64' but such > files are not directly executable on x86_64 Mac OS X 10.5.