From owner-freebsd-questions@FreeBSD.ORG Sat Mar 31 13:50:04 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id AEE9F106566C for ; Sat, 31 Mar 2012 13:50:04 +0000 (UTC) (envelope-from freebsd-questions@m.gmane.org) Received: from plane.gmane.org (plane.gmane.org [80.91.229.3]) by mx1.freebsd.org (Postfix) with ESMTP id 5E65C8FC12 for ; Sat, 31 Mar 2012 13:50:04 +0000 (UTC) Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1SDygs-0002qV-2H for freebsd-questions@freebsd.org; Sat, 31 Mar 2012 15:50:02 +0200 Received: from pool-173-79-99-96.washdc.fios.verizon.net ([173.79.99.96]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 31 Mar 2012 15:50:02 +0200 Received: from nightrecon by pool-173-79-99-96.washdc.fios.verizon.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 31 Mar 2012 15:50:02 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-questions@freebsd.org From: Michael Powell Date: Sat, 31 Mar 2012 09:49:50 -0400 Lines: 41 Message-ID: References: <4F76DD24.4060104@herveybayaustralia.com.au> Mime-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7Bit X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: pool-173-79-99-96.washdc.fios.verizon.net Subject: Re: ps, clang and make variables X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: nightrecon@hotmail.com List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 31 Mar 2012 13:50:04 -0000 R Skinner wrote: > Stupid question, but I need to clarify and make sure I'm right here: > what should I see as the running process if clang is compiling? ATM I > see cc1plus. > > I'm trying to set CC and friends make variables to clang for a build, > but it doesn't appear to be 'sticking'. It seems to change the shell env > to bash, but that shouldn't be the problem. So I'm trying to work out > whats up. > > FWIW I'm trying to build libreoffice with clang as it doesn't build, or > more accurately doesn't build and test correctly. It doesn't appear to > honor the CC variables (CC, CXX, CPP, etc). Worth a shot anyway :) I have done the buildworld/buildkernel dance with the following in /etc/make.conf a few weeks back. Haven't played with it recently though. .if !defined(CC) || ${CC} == "cc" CC=clang .endif .if !defined(CXX) || ${CXX} == "c++" CXX=clang++ .endif .if !defined(CPP) || ${CPP} == "cpp" CPP=clang-cpp .endif # Don't die on warnings NO_WERROR= WERROR= # Don't forget this when using Jails! NO_FSCHG= I got this from: http://wiki.freebsd.org/BuildingFreeBSDWithClang Good Luck! -Mike