URL: <https://savannah.gnu.org/bugs/?63552>
Summary: includes specified with -I ignored when -C is also used, since 4.4 Project: make Submitter: None Submitted: Tue 20 Dec 2022 11:14:25 AM UTC Severity: 3 - Normal Item Group: Bug Status: None Privacy: Public Assigned to: None Open/Closed: Open Discussion Lock: Any Component Version: 4.4 Operating System: None Fixed Release: None Triage Status: None _______________________________________________________ Follow-up Comments: ------------------------------------------------------- Date: Tue 20 Dec 2022 11:14:25 AM UTC By: Anonymous There's a regression in v4.4 where if you invoke make with both -C and -I parameters, the include directory specified by -I is not seen in the Makefile by the include directives it contains. for example let's consider a folder containing these files/folders: inc/test (empty file included by Makefile) src/Makefile Makefile has this content include test all: In that folder, this execution fails, as the include directive is not taken into account -I../inc (the bug): make -C src -I../inc all make: Entering directory '/tmp/make_include_bug/src' Makefile:1: test: No such file or directory make: *** No rule to make target 'test'. Stop. make: Leaving directory '/tmp/make_include_bug/src' v4.3 works fine (no error), as well as: (cd src ; make -I../inc all) So it is really the combination of -C and -I that does not work anymore. I have attached a small archive with the folder structure above. This regression was initially discovered when compiling sbcl which is using such construct. _______________________________________________________ Reply to this item at: <https://savannah.gnu.org/bugs/?63552> _______________________________________________ Message sent via Savannah https://savannah.gnu.org/