Update build_tc.sh

This commit is contained in:
Daniel Stankewitz 2019-07-20 09:11:43 +02:00 committed by GitHub
parent 44e8ca59ec
commit 7ac9bf3d5a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -27,7 +27,7 @@ function compile {
if [ -f autogen.sh ]; then if [ -f autogen.sh ]; then
./autogen.sh ./autogen.sh
fi fi
CC=cl ./configure --prefix=$BUILD $2 CC=cl CFLAGS=$CFLAGS ./configure --prefix=$BUILD $2
make -j $CPU_CORES make -j $CPU_CORES
make install make install
} }
@ -38,9 +38,9 @@ if [ "$STEP" == "libmfx" ]; then
autoreconf -fiv || exit 1 autoreconf -fiv || exit 1
fi fi
if [ "$MODE" == "debug" ]; then if [ "$MODE" == "debug" ]; then
compile libmfx "--enable-debug --extra-cflags=$CFLAGS" compile libmfx "--enable-debug"
else else
compile libmfx "--extra-cflags=$CFLAGS" compile libmfx
fi fi
sed -i 's/-lstdc++/-ladvapi32/g' $BUILD/lib/pkgconfig/libmfx.pc sed -i 's/-lstdc++/-ladvapi32/g' $BUILD/lib/pkgconfig/libmfx.pc
elif [ "$STEP" == "opus" ]; then elif [ "$STEP" == "opus" ]; then