From owner-freebsd-ports@FreeBSD.ORG Thu Dec 15 00:05:04 2011 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 0F3BA106566C; Thu, 15 Dec 2011 00:05:04 +0000 (UTC) (envelope-from bf1783@googlemail.com) Received: from mail-fx0-f54.google.com (mail-fx0-f54.google.com [209.85.161.54]) by mx1.freebsd.org (Postfix) with ESMTP id 688278FC14; Thu, 15 Dec 2011 00:05:03 +0000 (UTC) Received: by faaf16 with SMTP id f16so2665536faa.13 for ; Wed, 14 Dec 2011 16:05:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=mime-version:reply-to:date:message-id:subject:from:to:content-type; bh=BqAS/MM21aGhds2nN8u3LW4BUPdMdPYVvDLI0J7DPSA=; b=PZqU5s0aFeWYKIqsxoGTB+xqPV7mixSMqY3U36gGUTAynu3HjatFv4wJrNTIzS2BE2 S0knTh68Lb7eFbw+QVQTYNLmF0crFmVAEjMSAfxIh24EGBiCYMWjNLR9d77nb6Bksaor jDqRpy8BcYOmCH91qaPuZ9NRe2AnaUc2acRgQ= MIME-Version: 1.0 Received: by 10.180.104.103 with SMTP id gd7mr1363069wib.17.1323907502131; Wed, 14 Dec 2011 16:05:02 -0800 (PST) Received: by 10.180.100.129 with HTTP; Wed, 14 Dec 2011 16:05:02 -0800 (PST) Date: Thu, 15 Dec 2011 00:05:02 +0000 Message-ID: From: "b. f." To: Greg Larkin , freebsd-ports@FreeBSD.org Content-Type: text/plain; charset=ISO-8859-1 Cc: Subject: Re: Building ports with gcc46 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: Thu, 15 Dec 2011 00:05:04 -0000 > > Is there a way to build devel/protobuf with gcc46? Unfortunately I see > > a compatibility issue where the software I'm linking against it > > crashes because of the conflicting stdc++ librray versions. I've tried > > setting CC, CXX, LDFLAGS but I seem to be missing something else? > > > > Thanks, > > Hi Ali, > > Have you tried adding the following to /etc/make.conf? > > USE_GCC=4.6 > > Note that the directive will bring in a lot of other dependencies with > it, so you may also want to add WITHOUT_X11=yes to make.conf, if necessary. USE_GCC is the right statement, but one should be careful about adding such statements to make.conf without conditions, because you can pollute every invocation of make(1). Here, you can cause cycles in your dependency graphs if you set USE_GCC=4.6 for any of the ports that are required by lang/gcc46. If you are interested in applying them to a single port, use a test on .CURDIR, or, better yet, add the statement to any of the optional Makefiles that are automatically included by bsd.port.mk and were intended for that purpose -- ${MASTERDIR}/Makefile.local, for example. Please be careful in what you add, or recommend that others add, to make.conf. b.