Re: ld.gold doesn't like if -L points to not a directory

2011-07-02 Thread Ian Lance Taylor
Arkadiusz Miskiewicz writes: > [arekm@ixion-pld ~]$ more ~/test/x.c > int main() { return 0; } > [arekm@ixion-pld ~]$ g++ -L/bin/sh ~/test/x.c > /usr/bin/ld: error: /bin/sh: can not read directory: Not a directory > collect2: ld returned 1 exit status > > but > > [arekm@ixion-pld ~]$ g++ -L/notex

ld.gold doesn't like if -L points to not a directory

2011-07-02 Thread Arkadiusz Miskiewicz
Hi, [arekm@ixion-pld ~]$ more ~/test/x.c int main() { return 0; } [arekm@ixion-pld ~]$ g++ -L/bin/sh ~/test/x.c /usr/bin/ld: error: /bin/sh: can not read directory: Not a directory collect2: ld returned 1 exit status but [arekm@ixion-pld ~]$ g++ -L/notexistant ~/test/x.c [arekm@ixion-pld ~]$ (