Date: Sun, 3 Jul 2011 16:15:09 +0200 From: Robert Millan <rmh@debian.org> To: Benjamin Kaduk <kaduk@mit.edu> Cc: freebsd-hackers@freebsd.org Subject: Re: [PATCH] Remove -nostdinc in aicasm Message-ID: <CAOfDtXPM_=-8-KQDcUbkqCvYDj2=KcMmDS06J0C00ecRViRXpQ@mail.gmail.com> In-Reply-To: <CAOfDtXPS6VAAVXtencXdzQ_VmHQT3=pkm7AB9_Po4tqGW49T0A@mail.gmail.com> References: <CAOfDtXNRwaa8VrnhXZsgFb3uPTFPxZYXtLWX3WHMAq8PQaP7Wg@mail.gmail.com> <alpine.GSO.1.10.1107021120450.6818@multics.mit.edu> <CAOfDtXPS6VAAVXtencXdzQ_VmHQT3=pkm7AB9_Po4tqGW49T0A@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--bcaec520ef19dcc6c204a72ae060 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 2011/7/2 Robert Millan <rmh@debian.org>: > 2011/7/2 Benjamin Kaduk <kaduk@mit.edu>: >> There is a functional difference between '-nostdinc -I/usr/include -I.' = even >> when the standard include search path is just /usr/include -- the standa= rd >> include paths are always searched last (unless -nostdinc is given), even= if >> they are explicitly listed on the command line. =C2=A0If there are confl= icting >> definitions in /usr/local/foo.h and ./foo.h, this gimmick can be necessa= ry >> to pull in the correct version. =C2=A0(I've needed to do this when packa= ging >> software for the freebsd ports collection, though with /usr/local/includ= e >> replacing '.'.) > > In this case I'd rather be safe than sorry and use -iwithprefix or > -isystem `gcc --print-file-name=3D` on GCC only. I hope this patch is better. Please have a look. --=20 Robert Millan --bcaec520ef19dcc6c204a72ae060 Content-Type: text/plain; charset=US-ASCII; name="aicasm_nostdinc.diff" Content-Disposition: attachment; filename="aicasm_nostdinc.diff" Content-Transfer-Encoding: base64 X-Attachment-Id: f_gpo31lc10 SW5kZXg6IHN5cy9kZXYvYWljN3h4eC9haWNhc20vTWFrZWZpbGUKPT09PT09PT09PT09PT09PT09 PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PQotLS0gc3lz L2Rldi9haWM3eHh4L2FpY2FzbS9NYWtlZmlsZQkocmV2aXNpb24gMjIzNzIxKQorKysgc3lzL2Rl di9haWM3eHh4L2FpY2FzbS9NYWtlZmlsZQkod29ya2luZyBjb3B5KQpAQCAtMjYsNiArMjYsMTMg QEAKIAogTk9TVERJTkM9CS1ub3N0ZGluYwogQ0ZMQUdTKz0gJHtOT1NURElOQ30gLUkvdXNyL2lu Y2x1ZGUgLUkuCisjIFRoaXMgaXMgbmVlZGVkIHdoZW4gdXNpbmcgdXBzdHJlYW0gR0NDICh3aG9z ZSA8c3RkZGVmLmg+LCBldGMsIGFyZQorIyBub3QgcmUtZW5hYmxlZCBieSAtSS91c3IvaW5jbGRl KS4KKy5pZiAke0NDOlQ6TWNsYW5nfSAhPSAiY2xhbmciCitHQ0NJTkNESVIhPQlnY2MgLS1wcmlu dC1maWxlLW5hbWU9CitDRkxBR1MrPQktSSR7R0NDSU5DRElSfS9pbmNsdWRlIC1JJHtHQ0NJTkNE SVJ9L2luY2x1ZGUtZml4ZWQKKy5lbmRpZgorCiAuaWZkZWYgTUFLRVNSQ1BBVEgKIENGTEFHUys9 IC1JJHtNQUtFU1JDUEFUSH0KIC5lbmRpZgo= --bcaec520ef19dcc6c204a72ae060--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAOfDtXPM_=-8-KQDcUbkqCvYDj2=KcMmDS06J0C00ecRViRXpQ>