On 11/28/24 13:25, andy pugh wrote:
>> In src/Makefile:30 is the following line:
>> MAKEFLAGS += --warn-undefined-variables
>> On Debian it apparently does not not do anything. However, on
>> Fedora(39), it keeps bugging me all the time with a lot of warnings.
>
> Have you looked to see if the warnings are genuine?
> (are the variables really undefined?)

Yes they are. Defining an empty environment variable and running make shuts it up; like:
  $ MATHSTUB= make

So these are undefined. Actually, some must be undefined for the makefile to work. In line 29 it reads:
  ifeq ($(origin KERNELRELEASE), undefined)
  MAKEFLAGS += --warn-undefined-variables
  endif

If you define KERNELRELEASE, even to empty, then you will not compile anything userspace anymore. It seems to only want to do kernel modules, I guess.

The MAKEFLAGS addition was added some 10 years ago to do something, but I don't think it works as intended and annoys considerably.


Make version on Debian bookworm: 4.3
Make version on Fedora 39: 4.4.1

Running on Debian as:
  $ make --warn-undefined-variables
will give you the whole list of warnings. Apparently, assigning to the MAKEFLAGS variable inside the makefile has no effect on Debian.


And,... Sorry Andy, I hit the wrong button in reply.

--
Greetings Bertho

(disclaimers are disclaimed)


_______________________________________________
Emc-developers mailing list
Emc-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-developers

Reply via email to