From 5dde9efd53c8a272adfbe111ee19a3c798a43cf8 Mon Sep 17 00:00:00 2001 From: Daniel Stankewitz Date: Sat, 20 Jul 2019 12:03:33 +0200 Subject: [PATCH] Update build_tc.sh --- build_tc.sh | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/build_tc.sh b/build_tc.sh index 6808dad..4e8bfdc 100644 --- a/build_tc.sh +++ b/build_tc.sh @@ -27,7 +27,7 @@ function compile { if [ -f autogen.sh ]; then ./autogen.sh fi - CC=cl CFLAGS=$CFLAGS ./configure --prefix=$BUILD $2 + CC=cl CXXFLAGS=$CFLAGS ./configure --prefix=$BUILD $2 make -j $CPU_CORES make install } @@ -37,11 +37,7 @@ if [ "$STEP" == "libmfx" ]; then if [[ ! -f "configure" ]]; then autoreconf -fiv || exit 1 fi - if [ "$MODE" == "debug" ]; then - compile libmfx "--enable-debug" - else - compile libmfx - fi + compile libmfx sed -i 's/-lstdc++/-ladvapi32/g' $BUILD/lib/pkgconfig/libmfx.pc elif [ "$STEP" == "opus" ]; then cd $SRC/opus/win32/VS2015