Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-devel / 2024-10

macosx_version_min has been renamed to -macos_version_min

6 messages · 5 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Mattias Gaertner

Hi,

On mac the linker gives

Error: -macosx_version_min has been renamed to -macos_version_min

With fpc 3.2.2 and 3.3.1.

Is there some option I'm missing?

Mattias

Reply by email

Karoly Balogh
to Mattias Gaertner

Hi,

Mattias Gaertner wrote 7 lines
On mac the linker gives Error: -macosx_version_min has been renamed to -macos_version_min With fpc 3.2.2 and 3.3.1. Is there some option I'm missing?

This has been a warning before. Maybe Apple changed it to an error recently? It is great, because then we have to support different arguments depending on linker and macOS generation. Thanks Apple...

Charlie

Reply by email

Mattias Gaertner
to Karoly Balogh
Karoly Balogh wrote 15 lines
Hi, On Mon, 28 Oct 2024, Mattias Gaertner via fpc-devel wrote: > On mac the linker gives > > Error: -macosx_version_min has been renamed to -macos_version_min > > With fpc 3.2.2 and 3.3.1. > > Is there some option I'm missing? This has been a warning before. Maybe Apple changed it to an error recently? It is great, because then we have to support different arguments depending on linker and macOS generation. Thanks Apple...

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110624

Mattias

Reply by email

Jonas Maebe
to Mattias Gaertner: On mac the linker gives Error: -macosx_version_min has been renamed to -macos_version_min…
Mattias Gaertner wrote 7 lines
On mac the linker gives Error: -macosx_version_min has been renamed to -macos_version_min With fpc 3.2.2 and 3.3.1. Is there some option I'm missing?

Yesterday I changed trunk so that the compiler uses -macos_version_min if you target macOS 11.0 or later (-WM11.0). It won't help with FPC 3.2.2 though. I'll look into merging the change to 3.2.4, and possibly also up the default target macOS version to 11.0 to avoid issues by default for most people.

Jonas

Reply by email

Adriaan van Os
to Jonas Maebe
Jonas Maebe wrote 5 lines
Yesterday I changed trunk so that the compiler uses -macos_version_min if you target macOS 11.0 or later (-WM11.0). It won't help with FPC 3.2.2 though. I'll look into merging the change to 3.2.4, and possibly also up the default target macOS version to 11.0 to avoid issues by default for most people.

Unfortunately, I now get

ld: unknown option: -macos_version_min

when building fpc from trunk on Mac OS 10.14.

Regards,

Adriaan van Os

Reply by email

Zoë Peterson
to Adriaan van Os
Show quoted text 5 lines
Unfortunately, I now get ld: unknown option: -macos_version_min when building fpc from trunk on Mac OS 10.14.

FPC should use one or the other based on the version of macOS or Xcode that you’re compiling on, not the minimum version you’re targeting.

—
Zoë Peterson
Scooter Software

Reply by email