On 12/07/11 09:18, Rich Burridge wrote:
On 12/07/2011 08:16 AM, Ali Bahrami wrote:
On 12/07/11 09:02, Rich Burridge wrote:

$ LD_OPTIONS=-Dargs gcc -m64 /tmp/t.c
...
debug: arg[2] option=-Y: option-argument: P,/usr/sfw/lib/64:/lib/64:/usr/lib/64
...
debug: arg[13] option=-L: option-argument: /lib/amd64
debug: arg[14] option=-L: option-argument: /usr/lib/amd64

Aren't the [13-14] arguments redundant, given argument [2]? Since
-L takes precedence over -Y,P, it might even be self-defeating,
since we'll end up looking in these places before /usr/sfw?

The 64-bit gcc installed on my system does the same thing, so this
isn't something you've caused.

George could you respond to this please?

Thanks.


George, while you're looking, I'm also curious about these lines:

   debug: arg[11]  option=-L:  option-argument: 
/usr/sfw/lib/gcc/i386-pc-solaris2.11/3.4.3/amd64
   debug: arg[12]  option=-L:  option-argument: 
/usr/sfw/lib/gcc/i386-pc-solaris2.11/3.4.3/../../../amd64

I'm sure they're OK, but wonder why they are -L options instead of being
part of the -Y,P default list. Given that gcc is willing to change the
default list, why would it ever use -L options?

Thanks...

- Ali
_______________________________________________
userland-discuss mailing list
userland-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/userland-discuss

Reply via email to