GCC and /usr/bin/ld: unrecognized option '-Wl,-rpath

Gerald Pfeifer gerald at pfeifer.com
Sat May 28 05:32:18 PDT 2005


Now that upstream GCC (4.1 development) finally is able to build again
on FreeBSD after fixes to account for limited /bin/sh and everything works
fine on FreeBSD 4.x, I've seen the following breakage on 5.4.

   /usr/bin/ld: unrecognized option '-Wl,-rpath

Any ideas what might be broken now??

> creating libgij.la
> (cd .libs && rm -f libgij.la && ln -s ../libgij.la libgij.la)
> /bin/sh ./libtool --tag=GCJ --mode=link /work/a/ports/lang/gcc41/work/build/./gcc/gcj -B/work/a/ports/lang/gcc41/work/build/./gcc/ -B/usr/local/i386-portbld-freebsd5.4/bin/ -B/usr/local/i386-portbld-freebsd5.4/lib/ -isystem /usr/local/i386-portbld-freebsd5.4/include -isystem /usr/local/i386-portbld-freebsd5.4/sys-include -L/work/a/ports/lang/gcc41/work/build/i386-portbld-freebsd5.4/libjava -ffloat-store -fno-omit-frame-pointer -g -O2  -o jv-convert --main=gnu.gcj.convert.Convert -rpath /usr/local/lib -shared-libgcc -pthread  -L/work/a/ports/lang/gcc41/work/build/i386-portbld-freebsd5.4/libjava/.libs libgcj.la 
> /work/a/ports/lang/gcc41/work/build/./gcc/gcj -B/work/a/ports/lang/gcc41/work/build/./gcc/ -B/usr/local/i386-portbld-freebsd5.4/bin/ -B/usr/local/i386-portbld-freebsd5.4/lib/ -isystem /usr/local/i386-portbld-freebsd5.4/include -isystem /usr/local/i386-portbld-freebsd5.4/sys-include -ffloat-store -fno-omit-frame-pointer -g -O2 -o jv-convert --main=gnu.gcj.convert.Convert -shared-libgcc -pthread  -L/work/a/ports/lang/gcc41/work/build/i386-portbld-freebsd5.4/libjava -L/work/a/ports/lang/gcc41/work/build/i386-portbld-freebsd5.4/libjava/.libs ./.libs/libgcj.a -L/work/a/ports/lang/gcc41/work/build/i386-portbld-freebsd5.4/libstdc++-v3/src -L/work/a/ports/lang/gcc41/work/build/i386-portbld-freebsd5.4/libstdc++-v3/src/.libs -lz -L/work/a/ports/lang/gcc41/work/build/./gcc -L/usr/local/lib -lgcc -lgcc -Wl,--rpath -Wl,/usr/local/lib
> /usr/bin/ld: unrecognized option '-Wl,-rpath'
> /usr/bin/ld: use the --help option for usage information
> collect2: ld returned 1 exit status
> gmake[3]: *** [jv-convert] Error 1
> gmake[3]: Leaving directory `/work/a/ports/lang/gcc41/work/build/i386-portbld-freebsd5.4/libjava'
> gmake[2]: *** [all-recursive] Error 1
> gmake[2]: Leaving directory `/work/a/ports/lang/gcc41/work/build/i386-portbld-freebsd5.4/libjava'
> gmake[1]: *** [all-target-libjava] Error 2

Gerald


More information about the freebsd-ports mailing list