I want to set the default library search path (-YP) however as pointed
out in another thread ld doesn't automatically append 32|64 to each
path element. To pass class-specific arguments, you invoke ld like so:
ld -z ld32=arg1,arg2,...
however 'ld -z ld32=-Y,P,foo:bar' fails with
ld: fatal: option -Y has illegal argument `P'
ld: fatal: Flags processing errors
... of course, since the ld32 arg parsing eliminates the comma and treats
this as 3 args instead of 2. I'd prefer not to play with env. vars.
Any way to work around this? Should be a fairly trivial patch to ld
to allow it to handle '-Y P,' *cough*.
I can't pass -L arguments because they aren't searched the same way.