[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.
Cheers,
Alex
>
> regards, Dmitry
--
<http://www.alejandro-colomar.es/>
GPG key fingerprint: A9348594CE31283A826FBDD8D57633D441E25BB5
OpenPGP_signature
Description: OpenPGP digital signature
- Re: MAKEFLAGS=-r, (continued)
- Re: MAKEFLAGS=-r, Bruno Haible, 2023/07/17
- Re: MAKEFLAGS=-r, Dmitry Goncharov, 2023/07/18
- Re: MAKEFLAGS=-r, Paul Smith, 2023/07/17
- Re: disabling the built-in rules, Bruno Haible, 2023/07/17
- Re: disabling the built-in rules, Paul Smith, 2023/07/17
- Re: disabling the built-in rules, Bruno Haible, 2023/07/17
- Re: disabling the built-in rules, Paul Smith, 2023/07/17
- Re: disabling the built-in rules, Alejandro Colomar, 2023/07/17
- Re: disabling the built-in rules, Paul Smith, 2023/07/17
- Re: disabling the built-in rules, Dmitry Goncharov, 2023/07/18
- Re: disabling the built-in rules,
Alejandro Colomar <=
- Re: disabling the built-in rules, Bruno Haible, 2023/07/17
- Re: MAKEFLAGS=-r, Jeffrey Walton, 2023/07/19
- Re: MAKEFLAGS=-r, Dmitry Goncharov, 2023/07/19
- Re: MAKEFLAGS=-r, Paul Smith, 2023/07/20
- Re: MAKEFLAGS=-r, Dmitry Goncharov, 2023/07/18
- Re: MAKEFLAGS=-r, Bruno Haible, 2023/07/19
- Re: MAKEFLAGS=-r, Dmitry Goncharov, 2023/07/18
- Re: MAKEFLAGS=-r, Bruno Haible, 2023/07/19
Re: GNU make troubleshooting, Alejandro Colomar, 2023/07/16