mirror of
https://github.com/ValveSoftware/Proton.git
synced 2025-04-16 22:32:37 +03:00
build_proton: Fix 32-bit ffmpeg build on macos
This commit is contained in:
parent
13b5f764ae
commit
d728001649
@ -203,7 +203,9 @@ function build_ffmpeg
|
|||||||
cd "$TOP"
|
cd "$TOP"
|
||||||
mkdir -p build/ffmpeg.win32
|
mkdir -p build/ffmpeg.win32
|
||||||
cd build/ffmpeg.win32
|
cd build/ffmpeg.win32
|
||||||
$I386_WRAPPER "$TOP"/ffmpeg/configure --prefix="$TOOLS_DIR32" \
|
$I386_WRAPPER "$TOP"/ffmpeg/configure \
|
||||||
|
--extra-cflags="$FFMPEG_CROSS_CFLAGS" --extra-ldflags="$FFMPEG_CROSS_LDFLAGS" \
|
||||||
|
--prefix="$TOOLS_DIR32" \
|
||||||
--disable-static \
|
--disable-static \
|
||||||
--enable-shared \
|
--enable-shared \
|
||||||
--disable-programs \
|
--disable-programs \
|
||||||
@ -459,6 +461,8 @@ if [ "$PLATFORM" == "Darwin" ]; then
|
|||||||
CMAKE32="cmake"
|
CMAKE32="cmake"
|
||||||
CMAKE64="cmake"
|
CMAKE64="cmake"
|
||||||
WITHOUT_X="--without-x"
|
WITHOUT_X="--without-x"
|
||||||
|
FFMPEG_CROSS_CFLAGS="-m32"
|
||||||
|
FFMPEG_CROSS_LDFLAGS="-m32"
|
||||||
else
|
else
|
||||||
CC="$CCACHE gcc"
|
CC="$CCACHE gcc"
|
||||||
AMD64_WRAPPER="schroot --chroot steamrt_scout_beta_amd64 --"
|
AMD64_WRAPPER="schroot --chroot steamrt_scout_beta_amd64 --"
|
||||||
@ -467,6 +471,8 @@ else
|
|||||||
MAKE="make"
|
MAKE="make"
|
||||||
LIB_SUFFIX="so"
|
LIB_SUFFIX="so"
|
||||||
WITHOUT_X=""
|
WITHOUT_X=""
|
||||||
|
FFMPEG_CROSS_CFLAGS=""
|
||||||
|
FFMPEG_CROSS_LDFLAGS=""
|
||||||
|
|
||||||
if [ -e "$HOME/opt32/bin/cmake" ]; then
|
if [ -e "$HOME/opt32/bin/cmake" ]; then
|
||||||
CMAKE32="$HOME/opt32/bin/cmake"
|
CMAKE32="$HOME/opt32/bin/cmake"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user