On 2023-07-19 03:49, Dmitry Goncharov wrote: > On Mon, Jul 17, 2023 at 2:41 PM Alejandro Colomar > <alx.manpa...@gmail.com> wrote: > >> MAKEFLAGS += --no-builtin-variables > > If your makefiles are supposed to work on systems other than linux > (still with gnu make), then you may need built-in variables. > These variables contain different values on different systems. > e.g. ARFLAGS has value '-rv' on linux and value '-Xany -rv' on aix.
I'm using (something like) ARFLAGS ?= qcsDP. If I need a multi-system Makefile, I'll probably have the makefile run some tests to detect the system and append to ARGFLAGS accordingly; something like: ARFLAGS += $(shell ... test weird system ... && echo -Xany) But I very much prefer knowing what goes into my flags exactly, and where it comes from. Cheers, Alex > > regards, Dmitry -- <http://www.alejandro-colomar.es/> GPG key fingerprint: A9348594CE31283A826FBDD8D57633D441E25BB5
OpenPGP_signature
Description: OpenPGP digital signature