From owner-freebsd-hackers@FreeBSD.ORG Sat Jul 2 16:01:47 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 86AC3106564A for ; Sat, 2 Jul 2011 16:01:47 +0000 (UTC) (envelope-from rmh.aybabtu@gmail.com) Received: from mail-pz0-f54.google.com (mail-pz0-f54.google.com [209.85.210.54]) by mx1.freebsd.org (Postfix) with ESMTP id 601478FC0C for ; Sat, 2 Jul 2011 16:01:47 +0000 (UTC) Received: by pzk27 with SMTP id 27so1593014pzk.13 for ; Sat, 02 Jul 2011 09:01:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=3n34APFrragK0Hvbfv3YjwCNg4A4Xi+CIDLpl69KeJE=; b=Rp/KVSSMXZnDgBojNbS9IK46W0YQUlTK7/vV6HkTBMN2zKG4VDYQDToxE1LgdzVoGm 08E9EMZYpInXx0eH0Mj27EDIMN9h3e9k0Qkv/MaIGrVYIJKv9rcU8z/vbzHv8icKsXss agMnzRUXamNY2SHuWVZpZKbnfA8o2/VBGn4DY= MIME-Version: 1.0 Received: by 10.68.27.41 with SMTP id q9mr4644690pbg.337.1309622506729; Sat, 02 Jul 2011 09:01:46 -0700 (PDT) Sender: rmh.aybabtu@gmail.com Received: by 10.68.47.138 with HTTP; Sat, 2 Jul 2011 09:01:46 -0700 (PDT) In-Reply-To: References: Date: Sat, 2 Jul 2011 18:01:46 +0200 X-Google-Sender-Auth: VpChHHhosZgX1kNP2HDcJorXBfk Message-ID: From: Robert Millan To: Benjamin Kaduk Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: freebsd-hackers@freebsd.org 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 16:01:47 -0000 2011/7/2 Benjamin Kaduk : > There is a functional difference between '-nostdinc -I/usr/include -I.' e= ven > when the standard include search path is just /usr/include -- the standar= d > include paths are always searched last (unless -nostdinc is given), even = if > they are explicitly listed on the command line. =C2=A0If there are confli= cting > definitions in /usr/local/foo.h and ./foo.h, this gimmick can be necessar= y > to pull in the correct version. =C2=A0(I've needed to do this when packag= ing > software for the freebsd ports collection, though with /usr/local/include > replacing '.'.) In this case I'd rather be safe than sorry and use -iwithprefix or -isystem `gcc --print-file-name=3D` on GCC only. What is the recommended way to check the compiler flavour and version from FreeBSD Makefiles? --=20 Robert Millan