public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug build/29564] New: Incorrect way to change MAKEFLAGS in Makerules
@ 2022-09-11 17:18 psmith at gnu dot org
  2022-09-11 19:04 ` [Bug build/29564] " toralf.foerster at gmx dot de
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: psmith at gnu dot org @ 2022-09-11 17:18 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=29564

            Bug ID: 29564
           Summary: Incorrect way to change MAKEFLAGS in Makerules
           Product: glibc
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: build
          Assignee: unassigned at sourceware dot org
          Reporter: psmith at gnu dot org
                CC: carlos at redhat dot com
  Target Milestone: ---

The glibc Makerules file contains this:

  # Don't define any builtin rules.
  MAKEFLAGS := $(MAKEFLAGS)r

This is not a valid way to modify the MAKEFLAGS variable.  GNU make always
ensures that all options which have single-letter forms are used as the first
argument, however there are options to GNU make which do NOT have single-letter
forms and those are added after the single-letter forms in MAKEFLAGS.

If you use the above structure, the "r" is just appended to the end of whatever
the last option happens to be, which will result in an error if the person
invoking make provided a long option without a single-letter form.

This should be:

  MAKEFLAGS := $(MAKEFLAGS) -r

or probably even better:

  MAKEFLAGS += -r

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2024-02-07 22:10 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-09-11 17:18 [Bug build/29564] New: Incorrect way to change MAKEFLAGS in Makerules psmith at gnu dot org
2022-09-11 19:04 ` [Bug build/29564] " toralf.foerster at gmx dot de
2022-09-11 22:15 ` sam at gentoo dot org
2022-09-12 20:35 ` slyich at gmail dot com
2022-09-12 20:38 ` siddhesh at sourceware dot org
2022-09-13 17:59 ` siddhesh at sourceware dot org
2024-02-07 22:10 ` sam at gentoo dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).