From owner-freebsd-stable@FreeBSD.ORG Sun Feb 3 14:33:41 2013 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 9A3732FB; Sun, 3 Feb 2013 14:33:41 +0000 (UTC) (envelope-from andrnils@gmail.com) Received: from mail-ob0-f178.google.com (mail-ob0-f178.google.com [209.85.214.178]) by mx1.freebsd.org (Postfix) with ESMTP id 5D7439F5; Sun, 3 Feb 2013 14:33:41 +0000 (UTC) Received: by mail-ob0-f178.google.com with SMTP id wd20so5546622obb.37 for ; Sun, 03 Feb 2013 06:33:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:cc:content-type; bh=dCWFRlq0aUgqWEs5IUvW8ztRiuO/uiTdZJMJIlX3RQk=; b=Tjyyv6SiBAxfuFwPum8NJIWkcHAkMv022I+mPfmdZQCqpWZ73GAf7ncPBeLV/qJ5cq nl3kxeYYLjSNvS7+BBAsj1+ou4ahvLwS03NwpcWwowsHs6GaHo7uQkS6R6erpK2AG69B jb//Kc20au0imrOxNR/emmOoY9tLIfDUPdXDJP1zGe50Jhe0alxWkjinFTue11omNE3H sxhOK22xhowWCHxKL5cwa/2Z7VCGIJcTJo6Gpw8o2v1swS75UfBzbsXy5YntbX7FLyHP cPsyzozzySIUNnMnvv7mznQ27G2pg4x/i2eWIvKfc8RXvAUXtnwWDTwkTJHKWvrXlR0S 2qAg== MIME-Version: 1.0 X-Received: by 10.182.40.71 with SMTP id v7mr12892929obk.85.1359902020732; Sun, 03 Feb 2013 06:33:40 -0800 (PST) Received: by 10.76.10.105 with HTTP; Sun, 3 Feb 2013 06:33:40 -0800 (PST) In-Reply-To: <510E7365.3060807@FreeBSD.org> References: <510E65FA.4040900@FreeBSD.org> <510E7365.3060807@FreeBSD.org> Date: Sun, 3 Feb 2013 15:33:40 +0100 Message-ID: Subject: Re: Ports and WITH_LIBCPLUSPLUS From: Andreas Nilsson To: Dimitry Andric Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 Cc: FreeBSD Stable Mailing List X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 03 Feb 2013 14:33:41 -0000 On Sun, Feb 3, 2013 at 3:25 PM, Dimitry Andric wrote: > On 2013-02-03 14:56, Andreas Nilsson wrote: > >> On Sun, Feb 3, 2013 at 2:28 PM, Dimitry Andric wrote: >> > ... > > This is as yet an unsolved problem, as LDFLAGS is the same for both C >>> and C++ link jobs. I think the easiest way would be to set your CXX >>> variable to: >>> >>> CXX=cc -stdlib=libc++ >>> >>> Wouldn't CXX=CC -stdlib=libc++ be more appropriate, as cc is for c and >> CC >> for c++, or have that convention gone away? >> > > Sorry, I should have taken one more cup of coffee. :-) 'CC' is not > really recommended anymore, just use: > > CXX=c++ -stdlib=libc++ > Ah, yes. To little coffee here as well. > > My adding them to LDFLAGS comes from >> https://wiki.freebsd.org/NewC+**+Stackwhereit says "Add -stdlib=libc++ >> >> to your compile and link flags..." >> > > Yes, that advice is just fine, but in some cases you cannot influence > the link flags used only for C++ linking. In those cases, you will have > to trick the build system into doing so. > > In most cases (but probably not all), this can be done by adding the > required flags to ${CXX}. Good point. > > > > It >> actually made a bunch of the qt4- packages build, they wouldn't without >> it. >> >> I guess a wiki page tracking the failing packages would be good, but I >> couldn't get the hang of creating a page there :( >> > > This would better be done by a normal exp-run procedure, but those are > offline for the time being. > On a side note: I forget the actual logs. They are now available as logs.tgz at same base URL. Best regards Andreas