From owner-freebsd-hackers@FreeBSD.ORG Sat Jul 2 22:09:48 2011 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DC176106566B for ; Sat, 2 Jul 2011 22:09:48 +0000 (UTC) (envelope-from matthias.andree@gmx.de) Received: from mailout-de.gmx.net (mailout-de.gmx.net [213.165.64.23]) by mx1.freebsd.org (Postfix) with SMTP id 318E58FC18 for ; Sat, 2 Jul 2011 22:09:47 +0000 (UTC) Received: (qmail invoked by alias); 02 Jul 2011 22:09:46 -0000 Received: from f055106141.adsl.alicedsl.de (EHLO apollo.emma.line.org) [78.55.106.141] by mail.gmx.net (mp065) with SMTP; 03 Jul 2011 00:09:46 +0200 X-Authenticated: #428038 X-Provags-ID: V01U2FsdGVkX1+OEucSkeCOGjGUygV5VXpyx0R/V9jBJdJy3HZ7Fe IkUiRzGhAz8fdJ Received: from [127.0.0.1] (localhost.localdomain [127.0.0.1]) by apollo.emma.line.org (Postfix) with ESMTP id D74BE23D164 for ; Sun, 3 Jul 2011 00:09:45 +0200 (CEST) Message-ID: <4E0F9729.9080002@gmx.de> Date: Sun, 03 Jul 2011 00:09:45 +0200 From: Matthias Andree User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.17) Gecko/20110516 Mnenhy/0.8.3 Thunderbird/3.1.10 MIME-Version: 1.0 To: freebsd-hackers@freebsd.org References: In-Reply-To: X-Enigmail-Version: 1.1.2 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Y-GMX-Trusted: 0 Subject: Re: [PATCH] Remove -nostdinc in aicasm X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 02 Jul 2011 22:09:48 -0000 Am 02.07.2011 17:25, schrieb Benjamin Kaduk: > On Sat, 2 Jul 2011, Robert Millan wrote: > >> The userland aicasm utility in sys/dev/aic7xxx/aicasm/Makefile is being >> built with "-nostdinc -I/usr/include" options. Unfortunately this breaks >> building aicasm on systems using the upstream version of GCC, where >> "-nostdinc" disables more search directories than are enabled by >> "-I/usr/include". > > There is a functional difference between '-nostdinc -I/usr/include -I.' > even when the standard include search path is just /usr/include -- the > standard include paths are always searched last (unless -nostdinc is > given), even if they are explicitly listed on the command line. If > there are conflicting definitions in /usr/local/foo.h and ./foo.h, this > gimmick can be necessary to pull in the correct version. (I've needed > to do this when packaging software for the freebsd ports collection, > though with /usr/local/include replacing '.'.) Note that there are GCC-version-specific directories for the more intricate details such as stdarg.h and compiler-specific builtins -- you don't get those with -I/usr/include either.