[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug #32473] ./ is searched first for included makefiles no matter which
Paul D. Smith
[bug #32473] ./ is searched first for included makefiles no matter which --include-dir is set
Mon, 14 Feb 2011 18:28:25 +0000
Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:220.127.116.11) Gecko/20101206 Ubuntu/10.10 (maverick) Firefox/3.6.13
Update of bug #32473 (project make):
Status: None => Not A Bug
Open/Closed: Open => Closed
Follow-up Comment #1:
This works as documented; from the GNU make manual:
If the specified name does not start with a slash, and the file is
not found in the current directory, several other directories are
searched. First, any directories you have specified with the `-I' or
`--include-dir' option are searched (*note Summary of Options: Options
Summary.). Then the following directories (if they exist) are
searched, in this order: `PREFIX/include' (normally `/usr/local/include'
(1)) `/usr/gnu/include', `/usr/local/include', `/usr/include'.
It may have not been the best idea to always search the current directory
first but it's far too late to change this behavior now.
There is no way to avoid the local directory being searched first (other than
giving the full path).
Reply to this item at:
Message sent via/by Savannah