Strip -mmacosx-version-min options from plperl build
Peter Eisentraut <peter.eisentraut@enterprisedb.com>
From: Peter Eisentraut <peter.eisentraut@enterprisedb.com>
To: pgsql-hackers <pgsql-hackers@postgresql.org>
Date: 2022-08-18T06:57:51Z
Lists: pgsql-hackers
Attachments
- 0001-Strip-mmacosx-version-min-options-from-plperl-build.patch (text/plain) patch 0001
When building on macOS against a Homebrew-provided Perl installation, I get these warnings during the build: ld: warning: object file (SPI.o) was built for newer macOS version (12.4) than being linked (11.3) ld: warning: object file (plperl.o) was built for newer macOS version (12.4) than being linked (11.3) ... This is because the link command uses the option -mmacosx-version-min=11.3, which comes in from perl_embed_ldflags (perl -MExtUtils::Embed -e ldopts), but the compile commands don't use that option, which creates a situation that ld considers inconsistent. I think an appropriate fix is to strip out the undesired option from perl_embed_ldflags. We already do that for other options. Proposed patch attached.
Commits
-
mingw: Define PGDLLEXPORT as __declspec (dllexport) as done for msvc
- 0e497eadb1f4 16.0 landed
-
Fix PL/Perl build on Cygwin
- 1c3aa54502dd 16.0 landed
-
Remove further unwanted linker flags from perl_embed_ldflags
- b4e936859dc4 16.0 landed