Skip to content

Commit

Permalink
LDFLAGS -ld64
Browse files Browse the repository at this point in the history
  • Loading branch information
fdintino committed Jul 16, 2024
1 parent 1c58f0a commit ce885dc
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions wheelbuild/config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ if [ -n "$IS_MACOS" ] && [ -n "$MACOSX_DEPLOYMENT_TARGET" ]; then
LDFLAGS="${LDFLAGS} -mmacosx-version-min=$MACOSX_DEPLOYMENT_TARGET"
fi

if [ -n "$IS_MACOS" ] && [ "$PLAT" == "arm64" ]; then
export LDFLAGS="${LDFLAGS} -ld64"
fi

call_and_restore_trace() {
local rc
local force_trace
Expand Down Expand Up @@ -365,9 +369,8 @@ EOF
-DAVIF_CODEC_DAV1D=LOCAL \
-DAVIF_BUILD_APPS=ON \
-DENABLE_NASM=ON \
'-DCMAKE_C_FLAGS_RELEASE=-O3 -DNDEBUG -g -march=armv8-a+crc+crypto+dotprod+i8mm -mcpu=generic' \
'-DCMAKE_CXX_FLAGS_RELEASE=-O3 -DNDEBUG -g -march=armv8-a+crc+crypto+dotprod+i8mm -mcpu=generic' \
'-DCMAKE_EXE_LINKER_FLAGS=-march=armv8-a+crc+crypto+dotprod+i8mm -target arm64-apple-macos11 -no-pie -ld64' \
'-DCMAKE_C_FLAGS_RELEASE=-O3 -DNDEBUG -g' \
'-DCMAKE_CXX_FLAGS_RELEASE=-O3 -DNDEBUG -g' \
"${LIBAVIF_CMAKE_FLAGS[@]}" \
&& ninja -v install \
&& cp avifenc ../../wheelhouse)
Expand Down

0 comments on commit ce885dc

Please sign in to comment.