From owner-freebsd-ports@FreeBSD.ORG Mon Feb 15 13:57:54 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 12D07106568B; Mon, 15 Feb 2010 13:57:54 +0000 (UTC) (envelope-from bf1783@googlemail.com) Received: from mail-ew0-f211.google.com (mail-ew0-f211.google.com [209.85.219.211]) by mx1.freebsd.org (Postfix) with ESMTP id 690318FC18; Mon, 15 Feb 2010 13:57:53 +0000 (UTC) Received: by ewy3 with SMTP id 3so5150440ewy.13 for ; Mon, 15 Feb 2010 05:57:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:mime-version:received:reply-to:date:message-id :subject:from:to:cc:content-type; bh=5S6Rd1c3fz0z958nJ2P8uu3X7YBcW4J0y7v1GeVMG/I=; b=BzipP8IPjtG8gul7TNR0i2S7vo1pyB2N/dt6z2rJIFrSB9mXDaUsTUzPxzZXTNEkMx U1i0Eh8bnuvDRnQmEa7Ahh3wiJncGMJKZmZTD6mc9KTI05F3U2LdJ2t0I0AA7DZ2GpUJ qjdoJA7vs5m9MQ12ve3crWy228ntMtTL/7foE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=mime-version:reply-to:date:message-id:subject:from:to:cc :content-type; b=eOQPitkxl6d9JLLjFIu5WId21PFlbuLrqyUz3pvwEmwsSbIouVgTdbwc+c49gQ80qb HLqiaa/vhoLdSzWDfKT6E3WnzjDbjixrNi9g0LLY8JAJjIGgMJKWwGV/rDyiglY0OH/y JCXJXLgq62lA55wCrwRpkSCQBAVRvIrpk0pGM= MIME-Version: 1.0 Received: by 10.216.90.203 with SMTP id e53mr3179389wef.86.1266242272194; Mon, 15 Feb 2010 05:57:52 -0800 (PST) Date: Mon, 15 Feb 2010 08:57:52 -0500 Message-ID: From: "b. f." To: freebsd-ports@FreeBSD.org Content-Type: text/plain; charset=ISO-8859-1 Cc: gerald@FreeBSD.org, Peter Jeremy Subject: Re: bsd.gcc.mk PREFIX or LOCALBASE? X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: bf1783@gmail.com List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Feb 2010 13:57:54 -0000 Peter Jeremy wrote: >On 2010-Feb-12 21:58:38 -0800, Rob Farmer 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.