On Thu, Aug 23, 2007 at 11:09:28AM +0600, Boris Kovalenko wrote: > Hello! > > boris# cc -v -r -o common.o stream.o config.o memory.o > Using built-in specs. > Target: amd64-undermydesk-freebsd > Configured with: FreeBSD/amd64 system compiler > Thread model: posix > gcc version 4.2.0 20070514 [FreeBSD] > /usr/bin/ld --eh-frame-hdr -V -dynamic-linker /libexec/ld-elf.so.1 -o > common.o -r /usr/lib/crt1.o /usr/lib/crti.o /usr/lib/crtbegin.o As expected, cc passed -r to linker, and tried to link executable.
> -L/usr/lib -L/usr/lib stream.o config.o memory.o -lgcc --as-needed > -lgcc_s --no-as-needed -lc -lgcc --as-needed -lgcc_s --no-as-needed > /usr/lib/crtend.o /usr/lib/crtn.o > GNU ld version 2.15 [FreeBSD] 2004-05-23 > Supported emulations: > elf_i386_fbsd > elf_x86_64_fbsd > /usr/bin/ld: cannot find -lgcc_s > > > ld -r -o common.o stream.o config.o memory.o This seems to be right. > ld -shared -L/usr/lib -o libresin_os.so jni_os.o jni_jvmti.o jni_jvmdi.o > -pthread There, change ld to cc. > ld: unrecognized option '-pthread' > ld: use the --help option for usage information > > IMHO, the resin3 in not ready for separate cc/ld compilation. But what > type of workaround may I try to use?
pgpUwNp4z3xvu.pgp
Description: PGP signature
