[Top][All Lists]

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

Re: disabling the built-in rules

From: Alejandro Colomar
Subject: Re: disabling the built-in rules
Date: Wed, 19 Jul 2023 21:57:41 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0

On 2023-07-19 03:49, Dmitry Goncharov wrote:
> On Mon, Jul 17, 2023 at 2:41 PM Alejandro Colomar
> <alx.manpages@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.


> regards, Dmitry

GPG key fingerprint: A9348594CE31283A826FBDD8D57633D441E25BB5

Attachment: OpenPGP_signature
Description: OpenPGP digital signature

reply via email to

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