[vlc-commits] [Git][videolan/vlc][master] configure: only use -static-libgcc if the C++ compiler accepts it
Hugo Beauzée-Luyssen (@chouquette)
gitlab at videolan.org
Fri Mar 25 12:33:38 UTC 2022
Hugo Beauzée-Luyssen pushed to branch master at VideoLAN / VLC
Commits:
8ddd2bdd by Steve Lhomme at 2022-03-25T12:15:06+00:00
configure: only use -static-libgcc if the C++ compiler accepts it
newer clang reports that it ignores the command on each C++ file compiled..
In the end the static C++ compiler is used on Windows anyway.
- - - - -
1 changed file:
- configure.ac
Changes:
=====================================
configure.ac
=====================================
@@ -254,7 +254,9 @@ int foo() { return my_array[0]; }
*mingw32* | *cygwin* | *wince* | *mingwce*)
dnl Force libtool to not link to (shared) libgcc_s when detecting C++ dependencies
dnl When doing this test with -static-libgcc it will link on (static) libgcc_eh
- CXXFLAGS="${CXXFLAGS} -static-libgcc"
+ AC_LANG_PUSH(C++)
+ AX_APPEND_COMPILE_FLAGS([-static-libgcc], [CXXFLAGS], [-Werror])
+ AC_LANG_POP(C++)
AC_CHECK_TOOL(WINDRES, windres, :)
AC_CHECK_TOOL(OBJCOPY, objcopy, :)
AC_PREPROC_IFELSE([AC_LANG_PROGRAM(
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/8ddd2bdd963fd3ace52e7bf24968238b6cddf80a
--
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/8ddd2bdd963fd3ace52e7bf24968238b6cddf80a
You're receiving this email because of your account on code.videolan.org.
VideoLAN code repository instance
More information about the vlc-commits
mailing list