Have GCC uses NASM as the assembler?

Jonathan Wakely jwakely.gcc@gmail.com
Thu Jan 4 09:38:00 GMT 2018


On 29 December 2017 at 10:31, Andrew Haley wrote:
> On 28/12/17 22:50, Jeffrey Walton wrote:
>> So the problem becomes, how do we tell GCC to use /usr/gnu/bin/as when
>> it is driving the build process.
>
> I'd use a unified build, with binutils and GCC in the same build tree.
> It makes it all very easy.  Have you ever done this before?  I can
> talk you through the process if you wish.

Or simply configure+make+install binutils to some location $PREFIX and
then configure+make+install GCC to the same place,
--with-prefix=$PREFIX. If there's a binutils already installed at its
$PREFIX then GCC will use it automatically.

Again, "It may be necessary to configure with --without-gnu-ld
--with-ld=/usr/ccs/bin/ld to guarantee use of Sun ld."



More information about the Gcc-help mailing list