public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* Force to not use system ld / compiling on AIX
@ 2010-03-11 23:24 Andrew Guertin
  2010-03-12  9:30 ` Cedric Roux
  2010-03-13  2:29 ` dolphinling
  0 siblings, 2 replies; 7+ messages in thread
From: Andrew Guertin @ 2010-03-11 23:24 UTC (permalink / raw)
  To: gcc-help

I'm trying to compile gcc 4.2.4 on AIX. The AIX installation has a system copy 
of gcc 3.3.2 installed. When compiling, the system gcc uses the system ld, which 
runs out of memory (I have a 32MB ulimit). I would like to use a copy of gnu ld, 
which I have installed in $HOME/local, as gnu ld has options for reducing memory 
usage. However, no matter what I've tried so far the system ld has been used.

Things I have done, mostly in combination:
Set $PATH so that $HOME/local/bin is searched first
Configured with --with-ld=$HOME/local/bin/ld
Set $LD=$HOME/local/bin/ld, both during configure and make
Set $CFLAGS="-B$HOME/local/bin"
Manually run the affected gcc command with $PATH="$HOME/local/bin" (nothing 
else), $LD set, and with the option -B$HOME/local/bin
...Probably some other things, too.

Nothing has worked. The system ld is still used in all cases.

During configure, the messages
searching for powerpc-ibm-aix5.3.0.0-ld ... $HOME/local/bin/ld
searching for ld ... $HOME/local/bin/ld
(or something like them, don't have them in front of me) are printed. Setting 
$PATH got the second one away from system ld, setting $LD was required for the 
first one. Still, when actually compiling, the system ld is used.

Any ideas, either on how to force my copy of ld to be used, or how to work 
around the problem?

Thanks,
--dolphinling

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2010-03-18  0:50 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-03-11 23:24 Force to not use system ld / compiling on AIX Andrew Guertin
2010-03-12  9:30 ` Cedric Roux
2010-03-12 15:56   ` dolphinling
2010-03-13  2:29 ` dolphinling
2010-03-16 14:59   ` Ian Lance Taylor
2010-03-16 16:14     ` dolphinling
2010-03-18  0:51       ` Ian Lance Taylor

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).