Skip to content

Commit d3e9e48

Browse files
committed
Try to fix MacOS build
1 parent 7ae21ff commit d3e9e48

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

build-ffmpeg

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -755,12 +755,12 @@ if build "libpng" "1.6.37"; then
755755
execute make install
756756
build_done "libpng" "1.6.37"
757757
fi
758-
# libwebp can fail to compile on Ubuntu if these flags were left set to CFLAGS
759-
CPPFLAGS=
760758

761759
if build "libwebp" "1.2.1"; then
760+
# libwebp can fail to compile on Ubuntu if these flags were left set to CFLAGS
761+
CPPFLAGS=
762762
download "https://storage.googleapis.com/downloads.webmproject.org/releases/webp/libwebp-1.2.1.tar.gz" "libwebp-1.2.1.tar.gz"
763-
execute ./configure --prefix="${WORKSPACE}" --disable-shared --enable-static
763+
execute ./configure --prefix="${WORKSPACE}" --disable-shared --enable-static --with-zlib-include="${WORKSPACE}"/include/ --with-zlib-lib="${WORKSPACE}"/lib
764764
make_dir build
765765
cd build || exit
766766
execute cmake -DCMAKE_INSTALL_PREFIX="${WORKSPACE}" -DCMAKE_INSTALL_LIBDIR=lib -DCMAKE_INSTALL_BINDIR=bin -DCMAKE_INSTALL_INCLUDEDIR=include -DENABLE_SHARED=OFF -DENABLE_STATIC=ON ../

0 commit comments

Comments
 (0)