Skip to content

Commit ab5a883

Browse files
authored
Merge pull request #4 from Khang-NT/fixes
Fixes
2 parents 5764006 + 5040ae0 commit ab5a883

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

build_scripts/build_ffmpeg.sh

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -160,8 +160,8 @@ export AR="${CROSS_PREFIX}ar"
160160
export NM="${CROSS_PREFIX}nm"
161161
export RANLIB="${CROSS_PREFIX}ranlib"
162162
export LDFLAGS="-L$PREFIX/lib -fPIE -pie "
163-
export CFLAGS="$OPTIMIZE_CFLAGS -I$PREFIX/include --sysroot=$PLATFORM -fPIE "
164-
export CXXFLAGS="$CFLAGS"
163+
export CFLAGS="$OPTIMIZE_CFLAGS -I$PREFIX/include --sysroot=$PLATFORM -fPIE -Dlog2\(x\)=\(log\(x\)/log\(2\)\) -Dlog2f\(x\)=\(logf\(x\)/log\(2\)\) "
164+
export CXXFLAGS="$CFLAGS "
165165
export CPPFLAGS="--sysroot=$PLATFORM "
166166
export STRIP=${CROSS_PREFIX}strip
167167

@@ -182,6 +182,7 @@ popd
182182
# --enable-static \
183183
# --disable-shared \
184184
# --disable-cli \
185+
# --disable-opencl \
185186
# --prefix=$PREFIX
186187
# make clean
187188
# make -j8
@@ -277,7 +278,7 @@ pushd ffmpeg-$FFMPEG_VERSION
277278
--cross-prefix=$CROSS_PREFIX \
278279
--enable-cross-compile \
279280
--sysroot=$PLATFORM \
280-
--pkg-config=/usr/local/bin/pkg-config \
281+
--pkg-config=$(which pkg-config) \
281282
--pkg-config-flags="--static" \
282283
--enable-pic \
283284
--enable-small \

0 commit comments

Comments
 (0)