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 ~]$ (doesn't complain) $ ld --version GNU gold (Linux/GNU Binutils 2.21.52.0.2.20110610) 1.11 [...] Note that ld.bfd has no trouble with -L pointing to not a directory (it simply ignores that fact). IMO gold should match ld.bfd behaviour and simply ignore not a directories. -- Arkadiusz MiĆkiewicz PLD/Linux Team arekm / maven.pl http://ftp.pld-linux.org/ _______________________________________________ bug-binutils mailing list bug-binutils@gnu.org https://lists.gnu.org/mailman/listinfo/bug-binutils