From owner-freebsd-ports@freebsd.org Sat Mar 18 22:40:13 2017 Return-Path: Delivered-To: freebsd-ports@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 9F9F9D10D60 for ; Sat, 18 Mar 2017 22:40:13 +0000 (UTC) (envelope-from freebsd@grem.de) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 8537E18A8 for ; Sat, 18 Mar 2017 22:40:13 +0000 (UTC) (envelope-from freebsd@grem.de) Received: by mailman.ysv.freebsd.org (Postfix) id 84A2DD10D5E; Sat, 18 Mar 2017 22:40:13 +0000 (UTC) Delivered-To: ports@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 84545D10D5C for ; Sat, 18 Mar 2017 22:40:13 +0000 (UTC) (envelope-from freebsd@grem.de) Received: from mail.grem.de (outcast.grem.de [213.239.217.27]) by mx1.freebsd.org (Postfix) with SMTP id EFC7318A6 for ; Sat, 18 Mar 2017 22:40:12 +0000 (UTC) (envelope-from freebsd@grem.de) Received: (qmail 56010 invoked by uid 89); 18 Mar 2017 22:40:10 -0000 Received: from unknown (HELO bsd64.grem.de) (mg@grem.de@194.97.158.70) by mail.grem.de with ESMTPA; 18 Mar 2017 22:40:10 -0000 Date: Sat, 18 Mar 2017 23:40:08 +0100 From: Michael Gmelin To: Yuri Cc: "ports@freebsd.org" Subject: Re: compiler:c++11-lang doesn't ensure c++11? Message-ID: <20170318234008.6000d305@bsd64.grem.de> In-Reply-To: References: <20170318215907.6364e561@bsd64.grem.de> X-Mailer: Claws Mail 3.13.2 (GTK+ 2.24.29; amd64-portbld-freebsd10.2) X-Face: $wrgCtfdVw_H9WAY?S&9+/F"!41z'L$uo*WzT8mi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fer-Encoding: 7bit X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 18 Mar 2017 22:40:13 -0000 On Sat, 18 Mar 2017 15:17:27 -0700 Yuri wrote: > On 03/18/2017 13:59, Michael Gmelin wrote: > > Afaik this is intentional and the point is to depend on a compiler > > that can support those features (hence the comments in compiler.mk: > > "The port needs a compiler understanding Cxx..."), but setting > > CXXFLAGS accordingly is up to the project (through cmake/configure > > etc.) or the port. > > > compiler:c++11-lang is supposed to add the flag when the compiler > doesn't support c++11 by default. Do you have a reference where this is stated? AFAIK it's only there to make sure to install a compiler that is capable of supporting that version of the standard, not to request the compiler to build.Setting the CXXFLAGS is either done by the build system of the software you're porting or can be requested by setting USE_CXXSTD=c++xx in the port's Makefile. > It is also supposed to upgrade the > compiler (use the higher version from ports) when the base compiler. > Am I misunderstanding the purpose of compiler:c++11-lang? > > See also https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=211134 -m -- Michael Gmelin