On 2010-Jan-20 15:27:50 +0000, "Dr. David Kirkby" <[email protected]> wrote: >Nobody was suggesting that. I was just puzzled how LDFLAGS could >work. I assumed the flags were passed directly to the linker, but it >appears I am incorrect in assuming that.
LDFLAGS would normally be passed to the compiler front end (gcc/g++/cc/CC) during a link step. These flags will be interpreted/massaged by the frontend before being passed onto the linker executable (ld). To pass linker arguments directly to ld, you need to use the '-Wl' option in LDFLAGS. Therefore, you should use '-m64' in LDFLAGS with a gcc frontend, whether the gcc or Sun linker is actually being used. This also means that you need to be careful using '-Wl' since you need to ensure that the arguments are valid for whichever linker is in use. -- Peter Jeremy
pgphE730rpRGI.pgp
Description: PGP signature
