Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 3 Jun 2009 16:04:21 +0000 (UTC)
From:      Ed Schouten <ed@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-projects@freebsd.org
Subject:   svn commit: r193383 - projects/clangbsd/lib/libc
Message-ID:  <200906031604.n53G4LIS059257@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: ed
Date: Wed Jun  3 16:04:21 2009
New Revision: 193383
URL: http://svn.freebsd.org/changeset/base/193383

Log:
  Also build libc with GCC. It also needs #pragma weak.
  
  Not build libc with GCC causes things like PAM to break.

Modified:
  projects/clangbsd/lib/libc/Makefile

Modified: projects/clangbsd/lib/libc/Makefile
==============================================================================
--- projects/clangbsd/lib/libc/Makefile	Wed Jun  3 14:18:37 2009	(r193382)
+++ projects/clangbsd/lib/libc/Makefile	Wed Jun  3 16:04:21 2009	(r193383)
@@ -5,6 +5,11 @@ SHLIBDIR?= /lib
 
 .include <bsd.own.mk>
 
+# XXX: LLVM PR3679
+.if ${MK_CLANG_IS_CC} != "no" && ${CC} == "cc"
+CC=	gcc
+.endif
+
 # All library objects contain FreeBSD revision strings by default; they may be
 # excluded as a space-saving measure.  To produce a library that does
 # not contain these strings, add -DSTRIP_FBSDID (see <sys/cdefs.h>) to CFLAGS



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200906031604.n53G4LIS059257>