[FFmpeg-devel] Building for Mac x86 with GCC & NASM

softworkz . softworkz at hotmail.com
Wed May 28 01:23:43 EEST 2025


Hi,

I have an issue with the CI builds for Mac in a way that it prints
tons of lines like this:

ld: warning: no platform load command found in 'libavcodec/libavcodec.a[1008](sao_10bit.o)', assuming: macOS
ld: warning: no platform load command found in 'libavcodec/libavcodec.a[1009](hpeldsp.o)', assuming: macOS
ld: warning: no platform load command found in 'libavcodec/libavcodec.a[1011](huffyuvdsp.o)', assuming: macOS
ld: warning: no platform load command found in 'libavcodec/libavcodec.a[1013](huffyuvencdsp.o)', assuming: macOS


These are all about X86AM output. I've had those lines for all .o files 
before and was able to get rid of them by adding flags like below. 

Does anybody know how I can avoid those lines for the X86ASM output as well?
(don't know much about building for Apple)

I'm including the current configure command below.

Thanks
sw


export MACOSX_DEPLOYMENT_TARGET=13.0

./configure --pkg-config-flags="--static" --extra-libs="-lm" \
         --extra-cflags="-mmacosx-version-min=13.0" \
         --extra-ldflags="-mmacosx-version-min=13.0 -Wl,-platform_version,macos,13.0,13.0" \
         --enable-gpl \
         --enable-nonfree \
         --enable-videotoolbox \
         --samples=fate-suite --disable-stripping \
         --disable-doc --disable-optimizations --disable-avx512 --enable-debug=3 



More information about the ffmpeg-devel mailing list