Branch: refs/heads/blead
  Home:   https://github.com/Perl/perl5
  Commit: ce4ce44028bffa7d185790cda3e599c63e7e2604
      
https://github.com/Perl/perl5/commit/ce4ce44028bffa7d185790cda3e599c63e7e2604
  Author: Sevan Janiyan <ventur...@geeklan.co.uk>
  Date:   2025-05-29 (Thu, 29 May 2025)

  Changed paths:
    M hints/darwin.sh

  Log Message:
  -----------
  hints/darwin.sh: skip ldflags in lddlflags

It has not effect.
"adopting flags from ldflags is supposed to happen in Configure, not in
hints." - leont

Configuring a build of perl with -Aappend:ldflags=" -L/var/empty"
and checking the output of 'perl -V:ldflags -V:lddlflags' shows

ldflags=' -L/var/empty';
lddlflags='-bundle -undefined dynamic_lookup -L/var/empty';

Found when analysing issue #9437
Tested on OS X 10.4 aka Darwin 8.


  Commit: a1964502bb3f2c196106c32396402660ac2ddbec
      
https://github.com/Perl/perl5/commit/a1964502bb3f2c196106c32396402660ac2ddbec
  Author: Sevan Janiyan <ventur...@geeklan.co.uk>
  Date:   2025-05-29 (Thu, 29 May 2025)

  Changed paths:
    M hints/darwin.sh

  Log Message:
  -----------
  hints/darwin.sh: define $lddlflags earlier

So it can be appended, otherwise it just hardcodes lddlflags="-bundle 
-undefined dynamic_lookup"
Make sure MACOSX_DEPLOYMENT_TARGET is added to $lddlflags.


  Commit: 11712424a2ad07cc283c1d26a3b15f76c422353d
      
https://github.com/Perl/perl5/commit/11712424a2ad07cc283c1d26a3b15f76c422353d
  Author: Sevan Janiyan <ventur...@geeklan.co.uk>
  Date:   2025-05-29 (Thu, 29 May 2025)

  Changed paths:
    M hints/darwin.sh

  Log Message:
  -----------
  hints/darwin.sh: hint at newer OS'

Need to be explicit with OS' for macOS 11 and up here. Otherwise:
Unexpected MACOSX_DEPLOYMENT_TARGET=11


  Commit: 55b5890c26936402c07d7ae9e41b2b9842e36842
      
https://github.com/Perl/perl5/commit/55b5890c26936402c07d7ae9e41b2b9842e36842
  Author: Sevan Janiyan <ventur...@geeklan.co.uk>
  Date:   2025-05-29 (Thu, 29 May 2025)

  Changed paths:
    M hints/darwin.sh

  Log Message:
  -----------
  hints/darwin.sh: drop $prodvers

Unless MACOSX_DEPLOYMENT_TARGET is passed into the build, just ride
the defaults of the OS' toolchain.
This code assumes OS X versioning (10.15.x ) and tries to drop the patch version
from the product version so that you're targetting macOS 10.15, rather
than 10.15.1. Unfortunately with macOS 11 and up, it ends up targetting
the patch version and since we're no longer appending $ld to $lddlflags
we end up with the core targetting the major version and the modules
targetting the patch version. Resulting in warnings
ld: warning: object file 
(/Users/runner/work/perl5/perl5/cpan/Compress-Raw-Bzip2/Bzip2.o) was built for 
newer 'macOS' version (14.7) than being linked (14.0)


Compare: https://github.com/Perl/perl5/compare/74ec8b834a72...55b5890c2693

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

Reply via email to