Mailing List Archive

macOS: linker error (at least in ffmpeg) with Xcode 15
With the release of the latest macOS 14 (Sonoma) and Xcode 15, I've just
gotten around to test compiling fixes/33 and master. Unfortunately, Xcode
15 introduces a new linker which breaks (at least) FFMPEG in fixes/33 and
master. I've started a github issues here:
https://github.com/MythTV/mythtv/issues/808

There is a work around suggested by other sites affected by the same FFMPEG
error to add '-Wl,-ld_classic" to the linker flags. I have confirmed that
this does work by adding "export LDFLAGS="$LDFLAGS -Wl,-ld_classic" to my
build environment.

Is there a better place (perhaps one that only pushes the flags to FFMPEG)
to better test that this issue is solely limited to FFMPEG?

Thanks for the pointers!
John
Re: macOS: linker error (at least in ffmpeg) with Xcode 15 [ In reply to ]
On Thu, Oct 26, 2023 at 4:50?PM John Hoyt <john.hoyt@gmail.com> wrote:

> With the release of the latest macOS 14 (Sonoma) and Xcode 15, I've just
> gotten around to test compiling fixes/33 and master. Unfortunately, Xcode
> 15 introduces a new linker which breaks (at least) FFMPEG in fixes/33 and
> master. I've started a github issues here:
> https://github.com/MythTV/mythtv/issues/808
>
> There is a work around suggested by other sites affected by the same
> FFMPEG error to add '-Wl,-ld_classic" to the linker flags. I have
> confirmed that this does work by adding "export LDFLAGS="$LDFLAGS
> -Wl,-ld_classic" to my build environment.
>
> Is there a better place (perhaps one that only pushes the flags to FFMPEG)
> to better test that this issue is solely limited to FFMPEG?
>
> Thanks for the pointers!
> John
>

Thanks to a quick response from David H. on the github issue, this issue
has now been resolved.

Thanks David!