bug-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug #47880] Allow updates to .INCLUDE_DIRS to change search path


From: Dmitry Goncharov
Subject: [bug #47880] Allow updates to .INCLUDE_DIRS to change search path
Date: Tue, 20 Apr 2021 12:47:28 -0400 (EDT)
User-agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.128 Safari/537.36

Follow-up Comment #3, bug #47880 (project make):

> The change I have allows someone to reset the search path from within the
makefile

Awesome. i personally, need this change to be able to skip the default search
directories.
 
> In make generally (and, IMO, correctly) the person invoking make gets the
final say

agree

> -I directories would no longer appear in .INCLUDE_DIRS.

Could be a problem. make tests use this feature. Users may use it as well.


What about the following?

1. All directories specified on the command line with -I are prepended to
include_directories. This is the case today.

2. Allow the makefile to modify the search path through adding -I<path> to
MAKEFLAGS. https://savannah.gnu.org/bugs/?58341.

3. Ignore changes to .INCLUDE_DIRS. This is the case today.

4. Document that modifications of .INCLUDE_DIRS (from within the makefile or
on the command line) do not affect the seach path.

5. Introduce a command line switch to allow the user to remove the default
include directories. https://savannah.gnu.org/bugs/?60412.

As far as i can see, this alternative is backward compatible and gives both
the user and the makefile the power to change the search path arbitrarily. At
the expense of an additional command line switch.





    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?47880>

_______________________________________________
  Сообщение отправлено по Savannah
  https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]