--rpath -vs- cc1plus

Tom Tromey tromey@redhat.com
Sat Dec 15 17:22:00 GMT 2001


I'm using a relatively recent cvs trunk gcc.
Platform is x86 Red Hat Linux 6.2.

I invoked gcc and got this error:

creche. gcc foo.cc -lgcj -lgcjgc -lzgcj
/usr/bin/ld: warning: libgcc_s.so.1, needed by /x1/egcs/install/lib/gcc-lib/i686-pc-linux-gnu/3.1/../../../libgcj.so, not found (try using --rpath)


So I used --rpath and got a different error:

creche. gcc foo.cc --rpath /x1/egcs/install/lib -lgcj -lgcjgc -lzgcj  
cc1plus: unrecognized option `-frpath'


cc1plus should probably recognize and ignore this.
Or, some spec should take care not to pass -frpath to cc1plus.

Tom



More information about the Gcc mailing list