From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28968 invoked by alias); 6 Oct 2010 19:02:08 -0000 Received: (qmail 28957 invoked by uid 22791); 6 Oct 2010 19:02:07 -0000 X-SWARE-Spam-Status: No, hits=-2.0 required=5.0 tests=AWL,BAYES_00,TW_FJ,TW_GC,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mail3.caviumnetworks.com (HELO mail3.caviumnetworks.com) (12.108.191.235) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 06 Oct 2010 19:02:02 +0000 Received: from caexch01.caveonetworks.com (Not Verified[192.168.16.9]) by mail3.caviumnetworks.com with MailMarshal (v6,7,2,8378) id ; Wed, 06 Oct 2010 12:02:35 -0700 Received: from caexch01.caveonetworks.com ([192.168.16.9]) by caexch01.caveonetworks.com with Microsoft SMTPSVC(6.0.3790.4675); Wed, 6 Oct 2010 12:02:08 -0700 Received: from dd1.caveonetworks.com ([12.108.191.236]) by caexch01.caveonetworks.com over TLS secured channel with Microsoft SMTPSVC(6.0.3790.4675); Wed, 6 Oct 2010 12:02:08 -0700 Message-ID: <4CACC7A9.8070402@caviumnetworks.com> Date: Wed, 06 Oct 2010 19:02:00 -0000 From: David Daney User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.12) Gecko/20100907 Fedora/3.0.7-1.fc12 Thunderbird/3.0.7 MIME-Version: 1.0 To: Andreas Frisch CC: java@gcc.gnu.org Subject: Re: gcj static crosscompiling raises issues with boehm-gc References: <20101006184953.26E5C3148886@mail.multimedia-labs.de> In-Reply-To: <20101006184953.26E5C3148886@mail.multimedia-labs.de> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact java-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: java-owner@gcc.gnu.org X-SW-Source: 2010-10/txt/msg00009.txt.bz2 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! >