This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: gcj static crosscompiling raises issues with boehm-gc


On 10/06/2010 11:49 AM, Andreas Frisch wrote:
good suggestions to come to the irc channel :)
thanks to aph i finally found a set of parameters which produces an executable:

dumphd-static:
	$(CROSS_COMPILE)gcj -o dumphd $(SOURCES)  --main=dumphd.core.DumpHD -
static-libgcj \
	-fjni \
	-L/dream/oe1.6/dm8000/build/tmp/staging/mipsel-oe-linux/usr/lib \
	-L/dream/projects/bluray/aacskeys-0.4.0c-mipsel/lib/linux/ \
	-Wl,-rpath-link,/dream/oe1.6/dm8000/build/tmp/staging/mipsel-oe-
linux/usr/lib \
	-Wl,-rpath-link,/dream/projects/bluray/aacskeys-0.4.0c-mipsel/lib/linux/
-laacskeys \
	-Wl,-lstdc++ -lsupc++

I think the '-Wl,' is not needed, gcj should just pass all '-l' things without adding that.


$(CROSS_COMPILE)strip --strip-all dumphd


Other than that, It looks correct. The only extra options you need that gcj does not already provide over what would be required with g++ are "-lstdc++ -lsupc++"


David Daney

[OE::mipsel-oe-linux-opendreambox-dm8000]:/dream/projects/bluray/dumphd-0.61-
mipsel$ file dumphd
dumphd: ELF 32-bit LSB executable, MIPS, version 1 (SYSV), for GNU/Linux
2.6.12, dynamically linked (uses shared libs), stripped

i will test and evaluate on the embedded architecture tomorrow!

thanks for the quick and competent support!



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]