[m-rev.] for post-commit review: mingw cross compiler on Mac OS X
Peter Wang
novalazy at gmail.com
Tue Jan 10 10:12:05 AEDT 2012
On Tue, 10 Jan 2012 01:48:15 +1100 (EST), Julien Fischer <juliensf at csse.unimelb.edu.au> wrote:
>
> For post-commit review by Peter Wang.
>
> (I will update the README file once this works. At the moment there
> appear to be other issues involving pthreads that prevent it working.)
>
> Branches: main
>
> A step towards getting compilation with the MacPorts version of the MinGW cross
> compiler working on Mac OS X. It's not clear that this is terribly useful as
> the version of mingw-gcc in MacPorts is ancient (3.4.5). (I will also try
> using the nognu port, maybe that is more recent.)
>
> configure.in:
> When checking whether the Mercury compiler is up-to-date, pass options
> appropriate to the build compiler, not the host one. This avoids
> problems where the build Mercury compiler doesn't support --linkage
> static but the host one does.
>
> Use AC_CHECK_TOOL to check for ar in the non-MSVC case. This means
> the correct host type prefix will get attached when cross compiling.
> (The prefix is for MacPorts mingw-gcc is not a standard host triplet,
> it's simply i386-mingw.)
Looks okay.
Peter
--------------------------------------------------------------------------
mercury-reviews mailing list
Post messages to: mercury-reviews at csse.unimelb.edu.au
Administrative Queries: owner-mercury-reviews at csse.unimelb.edu.au
Subscriptions: mercury-reviews-request at csse.unimelb.edu.au
--------------------------------------------------------------------------
More information about the reviews
mailing list