From owner-freebsd-ports@FreeBSD.ORG Fri Apr 16 01:57:58 2010 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 160731065673 for ; Fri, 16 Apr 2010 01:57:58 +0000 (UTC) (envelope-from glarkin@FreeBSD.org) Received: from mail1.sourcehosting.net (113901-app1.sourcehosting.net [72.32.213.11]) by mx1.freebsd.org (Postfix) with ESMTP id E2DFF8FC15 for ; Fri, 16 Apr 2010 01:57:57 +0000 (UTC) Received: from 68-189-245-235.dhcp.oxfr.ma.charter.com ([68.189.245.235] helo=cube.entropy.prv) by mail1.sourcehosting.net with esmtp (Exim 4.69 (FreeBSD)) (envelope-from ) id 1O2aoc-000KTW-2J; Thu, 15 Apr 2010 21:57:55 -0400 Received: from [127.0.0.1] (fireball.entropy.prv [192.168.1.12]) by cube.entropy.prv (Postfix) with ESMTP id 2644A3E757B4; Thu, 15 Apr 2010 21:57:54 -0400 (EDT) Message-ID: <4BC7C420.8070802@FreeBSD.org> Date: Thu, 15 Apr 2010 21:57:52 -0400 From: Greg Larkin Organization: The FreeBSD Project User-Agent: Thunderbird 2.0.0.24 (Windows/20100228) MIME-Version: 1.0 To: Gerald Pfeifer References: <4BC3E384.2090702@FreeBSD.org> <201004130436.AA01277@POLYMER5.scphys.kyoto-u.ac.jp> <4BC4B44C.60006@FreeBSD.org> In-Reply-To: X-Enigmail-Version: 0.96.0 OpenPGP: id=1C940290 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Spam-Score: 0.1 (/) Cc: =?ISO-8859-1?Q?Jouko=5FLumij=3Fvi?= , Tsurutani Naoki , FreeBSD Ports ML Subject: Re: CFT: print/pdftk port compiled with Java compiler from gcc 4.5 X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: glarkin@FreeBSD.org List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 Apr 2010 01:57:58 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Gerald Pfeifer wrote: > On Tue, 13 Apr 2010, Greg Larkin wrote: >> Ok, I see why there's a problem now. My linker hints were set up in >> such a way that /usr/local/lib/gcc45 appeared before /usr/lib, so I >> didn't have the libstdc++.so.6 problem. However, that's not a normal >> configuration, so we have to fix this another way. >> >> Gerald, you ran into this problem a while back and posted a question >> about it here: >> http://www.mail-archive.com/freebsd-ports@freebsd.org/msg23261.html >> >> There are some other folks with the same problem here (old thread): >> http://gcc.gnu.org/ml/gcc/2001-03/msg01069.html >> >> Did you ever decide on a resolution for this problem? Should I simply >> create a wrapper script for pdftk that sets LD_LIBRARY_PATH, or is the >> rpath solution better? > > The way I have addressed this for C, C++ and from what I can tell all > relevant Fortran users of USE_GCC= is by setting the following > > CFLAGS+= -Wl,-rpath=${LOCALBASE}/lib/${_GCC_BUILD_DEPENDS} > LDFLAGS+= -Wl,-rpath=${LOCALBASE}/lib/${_GCC_BUILD_DEPENDS} > > in Mk/bsd.gcc.mk. > > Apparently pdftk does not use LDFLAGS (and it not using CFLAGS for Java > code is somewhat expected). Is there some similar variable we could set > for Java code? JFLAG, JAVAFLAGS,...? Or could you inject the use of > CFLAGS or LDFLAGS during linking? > > Gerald Hi Gerald, Thank you for that pointer, and I'll have a look at the pdftk build process and see if I can do something equivalent during the compile and link phases. If I can get that work, then perhaps the gcc45+gcj patch will be ready to commit and we can leave gcc42+gcj behind! Thank you, Greg - -- Greg Larkin http://www.FreeBSD.org/ - The Power To Serve http://www.sourcehosting.net/ - Ready. Set. Code. http://twitter.com/sourcehosting/ - Follow me, follow you -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iD8DBQFLx8Qg0sRouByUApARAotDAKCYyKTnHJO9zJxkkhYyOO1T2F2gCQCeMywi YS0b3mvOj2ZKphjdqmqVtoE= =41Ip -----END PGP SIGNATURE-----