Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 11 May 2014 16:08:06 -0600
From:      Warner Losh <imp@bsdimp.com>
To:        Dimitry Andric <dim@FreeBSD.org>
Cc:        svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org
Subject:   Re: svn commit: r265895 - in head/gnu/lib: libstdc++ libsupc++
Message-ID:  <ACB33E4C-AEB0-4323-9C53-6CF057225221@gmail.com>
In-Reply-To: <201405112107.s4BL71LN090061@svn.freebsd.org>
References:  <201405112107.s4BL71LN090061@svn.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help

On May 11, 2014, at 3:07 PM, Dimitry Andric <dim@FreeBSD.org> 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 <bsd.lib.mk>
>=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 <bsd.lib.mk>
>=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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?ACB33E4C-AEB0-4323-9C53-6CF057225221>