From owner-svn-src-head@FreeBSD.ORG Fri Oct 1 17:54:41 2010 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E43CC106566B; Fri, 1 Oct 2010 17:54:41 +0000 (UTC) (envelope-from swell.k@gmail.com) Received: from mail-fx0-f54.google.com (mail-fx0-f54.google.com [209.85.161.54]) by mx1.freebsd.org (Postfix) with ESMTP id 24B4D8FC17; Fri, 1 Oct 2010 17:54:40 +0000 (UTC) Received: by fxm9 with SMTP id 9so2850822fxm.13 for ; Fri, 01 Oct 2010 10:54:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:cc:subject:references :date:message-id:user-agent:mime-version:content-type; bh=QZPeFMNC7wrYNpyAWaDYZYYdcu3YC/RJIFaaUB8FdHs=; b=M6ReAZjEtQ4kLXCdbFji7oxpigMHxEgMdv464gUn7Xhdg2/YwlSi2sqL4QbEUVN+4O mas7b850PGT39s3ofLpNivd9qf+M6KP2I9u9zPcPF39DClv8vqqHX18y/SGZPRUWs7I4 Ai5EpMrpqj7VUDq+oKzDlt48Flehxflv2Ybl0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:references:date:message-id:user-agent :mime-version:content-type; b=tR3UYjgSEPYaP2nM/4AZ6MfzqrA0I1kns8N1stjjsEawaLRAgcLFqiWthtUmom9kiH BnQPsryqyjJKevHkB4FqicVKmGpgKr3P2lNOneIgtsnFrLCy83fXj61v4ZcE/zw6nSLb OZamBfrpiDv/mOK7vTzuFq0cUNUHyzJ/VVZQ0= Received: by 10.223.113.71 with SMTP id z7mr5837025fap.3.1285955679586; Fri, 01 Oct 2010 10:54:39 -0700 (PDT) Received: from localhost ([208.53.142.42]) by mx.google.com with ESMTPS id r5sm770426faq.8.2010.10.01.10.54.33 (version=SSLv3 cipher=RC4-MD5); Fri, 01 Oct 2010 10:54:38 -0700 (PDT) From: Anonymous To: Dimitry Andric References: <201009212141.o8LLfjHX007646@svn.freebsd.org> Date: Fri, 01 Oct 2010 21:54:11 +0400 Message-ID: <86mxqx7q9o.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain Cc: svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org Subject: Re: svn commit: r212979 - in head: gnu/lib/libobjc sys/boot/i386/boot2 sys/boot/pc98/boot2 X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.5 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: Fri, 01 Oct 2010 17:54:42 -0000 Dimitry Andric writes: > Author: dim > Date: Tue Sep 21 21:41:45 2010 > New Revision: 212979 > URL: http://svn.freebsd.org/changeset/base/212979 [...] > Modified: head/gnu/lib/libobjc/Makefile > ============================================================================== > --- head/gnu/lib/libobjc/Makefile Tue Sep 21 21:07:46 2010 (r212978) > +++ head/gnu/lib/libobjc/Makefile Tue Sep 21 21:41:45 2010 (r212979) > @@ -16,9 +16,7 @@ SRCS= archive.c class.c encoding.c gc.c > selector.c sendmsg.c thr.c thr-objc.c exception.c > > # XXX: clang cannot compile libobjc yet > -.if ${CC:T:Mclang} == "clang" > -CC=gcc > -.endif > +CC:=${CC:C/^(.*\/)?clang$/gcc/1} How about clearing some user-defined variable together with the substitution CLANG_FLAGS = # set to empty value CC := ${CC:C/^(.*\/)?clang$/gcc/1} in which user can store clang-specific flags (via src.conf), e.g. CC = clang ${CLANG_FLAGS} CLANG_FLAGS = -Qunused-arguments # too much noise for `make -s' build or CPUTYPE ?= native CLANG_FLAGS = -mno-sse4 # don't feed as(1) unknown opcodes Otherwise, substitution occurs too late and gcc(1) chokes on unknown options.