Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 4 Jun 2012 20:36:12 +0000 (UTC)
From:      Dimitry Andric <dim@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r236578 - head/sys/dev/aic7xxx/aicasm
Message-ID:  <201206042036.q54KaCQc064307@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: dim
Date: Mon Jun  4 20:36:11 2012
New Revision: 236578
URL: http://svn.freebsd.org/changeset/base/236578

Log:
  Fix build of aicasm when CC=clang.  This was due to a side-effect of the
  EARLY_BUILD macro: the -Qunused-arguments flag isn't passed anymore when
  building this particular program.  However, with clang 3.1 and -Werror,
  such unused argument warnings are flagged as errors, causing buildkernel
  to fail at this stage, due to the -nostdinc flag passed during linking.
  Since the -nostdinc flag isn't actually needed, just remove it.
  
  X-MFC-With:	r236528

Modified:
  head/sys/dev/aic7xxx/aicasm/Makefile

Modified: head/sys/dev/aic7xxx/aicasm/Makefile
==============================================================================
--- head/sys/dev/aic7xxx/aicasm/Makefile	Mon Jun  4 19:09:14 2012	(r236577)
+++ head/sys/dev/aic7xxx/aicasm/Makefile	Mon Jun  4 20:36:11 2012	(r236578)
@@ -24,8 +24,7 @@ WARNS?=	5
 DEPENDFILE=	.depend_aicasm
 .endif
 
-NOSTDINC=	-nostdinc
-CFLAGS+= ${NOSTDINC} -I/usr/include -I.
+CFLAGS+= -I.
 .ifdef MAKESRCPATH
 CFLAGS+= -I${MAKESRCPATH}
 .endif



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