Re: Variables and $(shell ...)

Dmitry Goncharov <[email protected]> Mon, 25 Mar 2024 20:35:35 -0400
Newsgroups gmane.comp.gnu.make.general
Message-ID <CAG+Z0Cv2PCJTBee3yRkMZV7hVUYQtaPwAh_xW-jUkPTsBNJtbg@mail.gmail.com>
On Mon, Mar 25, 2024 at 7:40 PM Tomas Volf <[email protected]> wrote:
> I am currently trying to figure out how to correctly pass CC variable to the
> make.  Passing it as an make variable (`make CC=gcc') seems to work in almost
> all cases, but it fails for the `$(shell ...)' construct.

Export to $(shell) was fixed in make-4.4.
Are you using an older version of make?

regards, Dmitry