telling pgCC which linker to use

Hi:

How would I tell pCC which version of ld to use if I have multiple versions installed?

Thanks!
Bobby

Hi Bobby,

You can simply add “LDDIR=” on your link line or you can create a “~/.mypgcpprc” file and add “LDDIR=”. The linker’s name can be changed by setting “LD”.

Hope this helps,
Mat

Example:

pgCC hello.cpp LDDIR=/usr/local/binutils-2.18/bin LD=ld-2.18
% cat ~./mypgcpprc
LDDIR=/usr/local/binutils-2.18/bin
LD=ld-2.18

thanks!i’ll try that out