Date: Mon, 15 Feb 2010 08:57:52 -0500 From: "b. f." <bf1783@googlemail.com> To: freebsd-ports@FreeBSD.org Cc: gerald@FreeBSD.org, Peter Jeremy <peterjeremy@acm.org> Subject: Re: bsd.gcc.mk PREFIX or LOCALBASE? Message-ID: <d873d5be1002150557m6102739enbdcc83d77795fc43@mail.gmail.com>
next in thread | raw e-mail | index | archive | help
Peter Jeremy wrote: >On 2010-Feb-12 21:58:38 -0800, Rob Farmer <rfarmer at predatorlabs.net> wrote: >>Hi, >> >>In bsd.gcc.mk there is: >> >>. if ${_USE_GCC} != 3.4 >>CFLAGS+= -Wl,-rpath=${PREFIX}/lib/${_GCC_BUILD_DEPENDS} >>LDFLAGS+= -Wl,-rpath=${PREFIX}/lib/${_GCC_BUILD_DEPENDS} >>. endif > >Actually, these directives need to be embedded inside the ports >gcc's, not in bsd.gcc.mk. The current situation means that >anything other than the base gcc is broken for anything except >building ports (and may still misbehave if gmake is used) unless >something like the above is explicitly added to the command line. > >See ports/142226: >http://www.freebsd.org/cgi/query-pr.cgi?pr=142226 Normally, such an rpath directive would automatically be issued, but our lang/gcc4* ports have this default feature disabled unless WITHOUT_JAVA is defined, citing an old PR related to gcj and it's libraries: .if ! defined(WITHOUT_JAVA) ... # FIXME: we are currently getting weird build failures with libjava on # some 4.x and 5.x systems, which the following works around. PR 81788. CONFIGURE_ARGS+=--disable-rpath ... Someone should investigate, to see if this problem still exists. If it doesn't, then we could restore the default behavior, and remove the corresponding statements from bsd.gcc.mk. b.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?d873d5be1002150557m6102739enbdcc83d77795fc43>