Skip to content

Commit 0d857d9

Browse files
committed
MacOs build fix
1 parent 3e2f4a2 commit 0d857d9

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

build-ffmpeg

+5-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ SCRIPT_VERSION=1.51
99
CWD=$(pwd)
1010
PACKAGES="$CWD/packages"
1111
WORKSPACE="$CWD/workspace"
12-
CFLAGS="-I$WORKSPACE/include"
12+
CFLAGS="-I$WORKSPACE/include -Wno-int-conversion"
1313
LDFLAGS="-L$WORKSPACE/lib"
1414
LDEXEFLAGS=""
1515
EXTRALIBS="-ldl -lpthread -lm -lz"
@@ -333,6 +333,10 @@ fi
333333

334334
if build "pkg-config" "0.29.2"; then
335335
download "https://pkgconfig.freedesktop.org/releases/pkg-config-$CURRENT_PACKAGE_VERSION.tar.gz"
336+
if [[ "$OSTYPE" == "darwin"* ]]; then
337+
export XXFLAGS="-Wno-int-conversion" # pkg-config 0.29.2 has a warning that is treated as an error
338+
export CFLAGS="-Wno-error=int-conversion"
339+
fi
336340
execute ./configure --silent --prefix="${WORKSPACE}" --with-pc-path="${WORKSPACE}"/lib/pkgconfig --with-internal-glib
337341
execute make -j $MJOBS
338342
execute make install

0 commit comments

Comments
 (0)