From owner-freebsd-ports@FreeBSD.ORG Sat Feb 13 08:08:10 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 7D546106566C; Sat, 13 Feb 2010 08:08:10 +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 E2B108FC0A; Sat, 13 Feb 2010 08:08:09 +0000 (UTC) Received: by ewy3 with SMTP id 3so3375433ewy.13 for ; Sat, 13 Feb 2010 00:08:08 -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=hvnDw8WAXx37ii0Kbo5BdssNpZc2CABzDNf0ADI3YPI=; b=WfYwXS6/lZpPvgwWHxyI60ConjmFjNaQLZCo+xteE0fIJ+Fw9MPHmUqIyzG1vegulz zYr1BJPR6TVeHG3o2l8AVk4YWYR+JU5B1gLOueFy35uFw/TaX+7Qq1zUkQF4dNrrGyel VVPdS+hbn92RLYTkhn4PyW7wWNb09O1/2rHqY= 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=GZP3AD2FpNOWZgQEAr6428L2u8a1AeJwNFjA0JoYgZQCRxmFel8/GZvj9CFRV58IWR JBO9uRaCYtyQpUjCwdGMRjAC+BCdpwPLJNwlt7cuPtGJwvLOQytcK2Io3xDHnllNLGDh /yEDlsEGThlYLQRtC9WXjp0gTJ/RoExkpcrxg= MIME-Version: 1.0 Received: by 10.216.154.70 with SMTP id g48mr1506721wek.109.1266048488848; Sat, 13 Feb 2010 00:08:08 -0800 (PST) Date: Sat, 13 Feb 2010 03:08:08 -0500 Message-ID: From: "b. f." To: freebsd-ports@FreeBSD.org Content-Type: text/plain; charset=ISO-8859-1 Cc: Rob Farmer , gerald@FreeBSD.org 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: Sat, 13 Feb 2010 08:08:10 -0000 >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 > >However, I think this should be ${LOCALBASE} instead of ${PREFIX}. I agree with you, and I meant to mention this to gerald@ earlier, but I forgot. The Ports system is not now well-equipped to deal with LOCALBASE != PREFIX for a lot of software, and most people don't do this, so the impact is limited, but it does break some test builds and utilities, as you have seen. b.