Author: dim
Date: Sun May 11 21:07:00 2014
New Revision: 265895
URL: http://svnweb.freebsd.org/changeset/base/265895

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.

Modified:
  head/gnu/lib/libstdc++/Makefile
  head/gnu/lib/libsupc++/Makefile

Modified: head/gnu/lib/libstdc++/Makefile
==============================================================================
--- 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
 
 CLEANFILES+=   ${VERSION_MAP}
 
+CXXFLAGS.clang+= -stdlib=libstdc++
+
 .include <bsd.lib.mk>
 
 # Filter out libc++-specific flags, and -std= flags above c++98 or gnu++98.
 CXXFLAGS:=     
${CXXFLAGS:N-stdlib=libc++:N-std=c++[01][13x]:N-std=gnu++[01][13x]}
-
-CXXFLAGS.clang+= -stdlib=libstdc++

Modified: head/gnu/lib/libsupc++/Makefile
==============================================================================
--- 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+= unwind.h
 
 VERSION_MAP=   ${.CURDIR}/Version.map
 
+CXXFLAGS.clang+= -stdlib=libstdc++
 
 .include <bsd.lib.mk>
 
 # Filter out libc++-specific flags, and -std= flags above c++98 or gnu++98.
 CXXFLAGS:=     
${CXXFLAGS:N-stdlib=libc++:N-std=c++[01][13x]:N-std=gnu++[01][13x]}
-
-CXXFLAGS.clang+= -stdlib=libstdc++
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to