I think I'm on a different page :-)

I have a number of perls (some 32-bit, some 64-bit) all of which use the same (32-bit) dmake.
I have no problems with that, except for when it comes to building Win32::API.

For all other modules, it works fine.
With the 32-bit perls, running perl Makefile.PL generates a Makefile that specifies:
AR = ar.exe
CC = gcc.exe
That is correct, and as it should be.

With the 64-bit perls (which, obviously, use a different compiler), running perl Makefile.PL generates a Makefile that specifies:
AR = x86_64-w64-mingw32-ar.exe
CC = x86_64-w64-mingw32-gcc.exe
That is correct, and as it should be.

However, when building Win32::API, the assembler (as.exe) gets invoked.
No problem on the 32-bit perls - the assembler gets correctly invoked as 'as.exe'.
But on the 64-bit perls, it also gets invoked as 'as.exe' - which is incorrect as it ought to be invoked as 'x86_64-w64-mingw32-as.exe'.

Obviously there's some process somewhere that handles the correct setting of AR.
I would like to apply that same process to AS so that it, too, gets set correctly for the 64-bit perls.
But I don't know what/where that "process" actually is.
Any ideas ?

UPDATE: Seems that "ar", like "cc", is set in %Config.
But there is no %Config setting for "as" ... so I think I'm probably faced with hacking the dmake files (or copying 'x86_64-w64-mingw32-as.exe' to 'as.exe').
Ought there be a %Config setting for the assembler ?

Cheers,
Rob

In reply to Re^2: [Win32] Overriding dmake's $(AS) by syphilis
in thread [Win32] Overriding dmake's $(AS) by syphilis

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.