File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed
Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -63,17 +63,22 @@ option(ENABLE_IWYU "Enable 'Include What You Use' scanner (CMake 3.3+)" OFF)
6363option (ENABLE_PARALLEL_CTEST "Run CTest using multiple processors" ON )
6464option (VERBOSE_TESTS "Run CTest with maximum verbosity" OFF )
6565option (ENABLE_COVERAGE "Scan test coverage using gcov and report" OFF )
66-
6766option (ENABLE_LIB_DOCS "Build API documentation (requires Doxygen)" ON )
68-
6967option (APPIMAGE_BUILD "Build to install in an AppImage (Linux only)" OFF )
70-
7168option (USE_SYSTEM_JSONCPP "Use system installed JsonCpp, if found" ON )
7269option (DISABLE_BUNDLED_JSONCPP "Don't fall back to bundled JsonCpp" OFF )
7370option (ENABLE_MAGICK "Use ImageMagick, if available" ON )
7471option (ENABLE_OPENCV "Build with OpenCV algorithms (requires Boost, Protobuf 3)" ON )
7572option (USE_HW_ACCEL "Enable hardware-accelerated encoding-decoding with FFmpeg 3.4+" ON )
7673
74+ if (APPIMAGE_BUILD)
75+ # Force older version of glibc and -pthread flag when building AppImage
76+ # for better backwards compatibility (i.e older distros)
77+ message ("Wrapping libc for compatibility with version glibc_2.23" )
78+ set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -include /usr/local/include/force_link_glibc_2.23.h -static-libgcc" )
79+ set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -include /usr/local/include/force_link_glibc_2.23.h -static-libgcc" )
80+ endif ()
81+
7782# Legacy commandline override
7883if (DISABLE_TESTS)
7984 set (BUILD_TESTING OFF )
You can’t perform that action at this time.
0 commit comments