Skip to content

Commit

Permalink
CFLAGS: Don't add mthreads of clang
Browse files Browse the repository at this point in the history
Fixes #1600
  • Loading branch information
1480c1 committed Apr 4, 2020
1 parent f111587 commit 2a716c4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion media-autobuild_suite.bat
Original file line number Diff line number Diff line change
Expand Up @@ -1752,7 +1752,11 @@ goto :EOF
echo.PKG_CONFIG="${MINGW_PREFIX}/bin/pkg-config --static"
echo.PKG_CONFIG_PATH="${LOCALDESTDIR}/lib/pkgconfig:${MINGW_PREFIX}/lib/pkgconfig"
echo.CPPFLAGS="-D_FORTIFY_SOURCE=0 -D__USE_MINGW_ANSI_STDIO=1"
echo.CFLAGS="-mthreads -mtune=generic -O2 -pipe"
if %CC%==clang (
echo.CFLAGS="-mtune=generic -O2 -pipe"
) else (
echo.CFLAGS="-mthreads -mtune=generic -O2 -pipe"
)
echo.CXXFLAGS="${CFLAGS}"
echo.LDFLAGS="-pipe -static-libgcc -static-libstdc++"
echo.export DXSDK_DIR ACLOCAL_PATH PKG_CONFIG PKG_CONFIG_PATH CPPFLAGS CFLAGS CXXFLAGS LDFLAGS MSYSTEM
Expand Down

0 comments on commit 2a716c4

Please sign in to comment.