From owner-svn-src-head@FreeBSD.ORG Sun May 11 22:08:14 2014 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 1BF7C605 for ; Sun, 11 May 2014 22:08:14 +0000 (UTC) Received: from mail-ie0-f169.google.com (mail-ie0-f169.google.com [209.85.223.169]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id DA0222A39 for ; Sun, 11 May 2014 22:08:13 +0000 (UTC) Received: by mail-ie0-f169.google.com with SMTP id lx4so566013iec.0 for ; Sun, 11 May 2014 15:08:07 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:content-type:mime-version:subject:from :in-reply-to:date:cc:content-transfer-encoding:message-id:references :to; bh=O/jDoF5KgscGRQ+YpdzWrc9+yY9x6OC58JZIkAYqGYQ=; b=Pn5qLEctIle5tOslmadsjkCZ6D+TWMEphzy7l0ANYu40UMPrIwneE50nakASDH8azm lTZnnjFHNyGU36vmR1Q2gqAKgx0EWK3p6xgdK7Bf2xMhngosw5gigrJ4DvIKT8b+qIkR BgmpNyWYhqo3ZC7Bfb31P4Kzxyhp/YQ5QOkk4Fy3uoXw39add5MFiQAgKMpkyNxk1USi pAVF/ZsnQ5wDkL98OiyJAYe8M+K5sMSrAB/9dQgDuOJKEWgEAVnryLBt99SvweRlTu// n2l7c1Bbky5NZgbSg6sBvT6OwUaCbb7XkB0lNQjiWelLKqRmVyGhJiU22D/xKoVu+CNV EFww== X-Gm-Message-State: ALoCoQmxn8HUR+y+u+9oc0bD8fEtKZrJY+mXmSsXay6ILhQ+cMTRm5+e6VpJs1BB6DtpwWI15Iq1 X-Received: by 10.50.1.111 with SMTP id 15mr14895486igl.7.1399846087669; Sun, 11 May 2014 15:08:07 -0700 (PDT) Received: from netflix-mac.bsdimp.com (50-78-194-198-static.hfc.comcastbusiness.net. [50.78.194.198]) by mx.google.com with ESMTPSA id k8sm17124489ige.0.2014.05.11.15.08.06 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 11 May 2014 15:08:07 -0700 (PDT) Sender: Warner Losh X-Google-Original-From: Warner Losh Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 7.2 \(1874\)) Subject: Re: svn commit: r265895 - in head/gnu/lib: libstdc++ libsupc++ From: Warner Losh In-Reply-To: <201405112107.s4BL71LN090061@svn.freebsd.org> Date: Sun, 11 May 2014 16:08:06 -0600 Content-Transfer-Encoding: quoted-printable Message-Id: References: <201405112107.s4BL71LN090061@svn.freebsd.org> To: Dimitry Andric X-Mailer: Apple Mail (2.1874) Cc: svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 May 2014 22:08:14 -0000 On May 11, 2014, at 3:07 PM, Dimitry Andric wrote: > Author: dim > Date: Sun May 11 21:07:00 2014 > New Revision: 265895 > URL: http://svnweb.freebsd.org/changeset/base/265895 >=20 > Log: > Allow libstdc++ and libsupc++ to compile with clang again, after the > bsd.*.mk infrastructure changes. Apparently, you must now modify > CXXFLAGS *before* including bsd.lib.mk, or your changes will be lost. You must modify CXXFLAGS before you finalize them with the :=3D = assignment is the real issue here. I broke this when I converted the .if to = CXXFLAGS.clang a couple of revisions back. Thanks for fixing it. > Modified: > head/gnu/lib/libstdc++/Makefile > head/gnu/lib/libsupc++/Makefile >=20 > Modified: head/gnu/lib/libstdc++/Makefile > = =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D > --- head/gnu/lib/libstdc++/Makefile Sun May 11 20:44:58 2014 = (r265894) > +++ head/gnu/lib/libstdc++/Makefile Sun May 11 21:07:00 2014 = (r265895) > @@ -632,9 +632,9 @@ ${VERSION_MAP}: ${SRCDIR}/config/abi/pre >=20 > CLEANFILES+=3D ${VERSION_MAP} >=20 > +CXXFLAGS.clang+=3D -stdlib=3Dlibstdc++ > + > .include >=20 > # Filter out libc++-specific flags, and -std=3D flags above c++98 or = gnu++98. > CXXFLAGS:=3D = ${CXXFLAGS:N-stdlib=3Dlibc++:N-std=3Dc++[01][13x]:N-std=3Dgnu++[01][13x]} > - > -CXXFLAGS.clang+=3D -stdlib=3Dlibstdc++ >=20 > Modified: head/gnu/lib/libsupc++/Makefile > = =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D > --- head/gnu/lib/libsupc++/Makefile Sun May 11 20:44:58 2014 = (r265894) > +++ head/gnu/lib/libsupc++/Makefile Sun May 11 21:07:00 2014 = (r265895) > @@ -51,10 +51,9 @@ CLEANFILES+=3D unwind.h >=20 > VERSION_MAP=3D ${.CURDIR}/Version.map >=20 > +CXXFLAGS.clang+=3D -stdlib=3Dlibstdc++ >=20 > .include >=20 > # Filter out libc++-specific flags, and -std=3D flags above c++98 or = gnu++98. > CXXFLAGS:=3D = ${CXXFLAGS:N-stdlib=3Dlibc++:N-std=3Dc++[01][13x]:N-std=3Dgnu++[01][13x]} > - > -CXXFLAGS.clang+=3D -stdlib=3Dlibstdc++ >=20