[Perl/perl5] c9c7ac: Configure: Fix compilation when stack-protector on...

[email protected] (Karl Williamson via perl5-changes) Thu, 16 Jul 2026 08:03:17 -0700
Newsgroups perl.perl5.changes
Message-ID <Perl/perl5/push/refs/heads/blead/[email protected]>
  Branch: refs/heads/blead
  Home:   https://github.com/Perl/perl5
  Commit: c9c7acaf187c9c2008bb7e92eca73096a09d5206
      https://github.com/Perl/perl5/commit/c9c7acaf187c9c2008bb7e92eca73096a09d5206
  Author: Karl Williamson <[email protected]>
  Date:   2026-07-16 (Thu, 16 Jul 2026)

  Changed paths:
    M Configure

  Log Message:
  -----------
  Configure: Fix compilation when stack-protector only ldflag

This moves three lines of Configure down a code paragraph.  Before this
commit, those lines would change empty load flags to none.  Then the
next paragraph would add one of the stack-protector arguments if needed.
When needed, the result would be both "none" and the stack-protector
argument.  Compilation would then fail because 'none' is not a
recognized parameter.

By moving the lines down, the stack-protector check is done while the
load flags are still empty.  Then 'none' is added only if there were no
stack-protector arguments.  Later, unchanged, code removes 'none' when it
is the only thing.  So we get either empty or just the stack-protector,
which is correct behavior.



To unsubscribe from these emails, change your notification settings at https://github.com/Perl/perl5/settings/notifications