Hi. The following patch fixes build in mipsel VM. (It literally took days to install minimal Debian and compile sources.)
Patch is already pushed to the upstream. --- Rinat diff --git a/cmake/ffmpeg-compat/CMakeLists.txt b/cmake/ffmpeg-compat/CMakeLists.txt index 7afd87d..8a383a2 100644 --- a/cmake/ffmpeg-compat/CMakeLists.txt +++ b/cmake/ffmpeg-compat/CMakeLists.txt @@ -7,6 +7,10 @@ include(CheckCSourceCompiles) set(CMAKE_REQUIRED_LIBRARIES "${REQ_LIBRARIES}") set(CMAKE_REQUIRED_INCLUDES "${REQ_INCLUDE_DIRS}") +# restore default visiblity to workaround linker issue +set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fvisibility=default") +set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fvisibility=default") + macro(MACRO_C_SOURCE_CHECK FILE_NAME HAVE_variable) unset(${HAVE_variable} CACHE) file(READ ${FILE_NAME} C_SRC) diff --git a/src/dep_check.c b/src/dep_check.c index 7b763ec..48e8f8b 100644 --- a/src/dep_check.c +++ b/src/dep_check.c @@ -27,6 +27,7 @@ char * NP_GetPluginVersion(void); +__attribute__((visibility("default"))) int main(void) { diff --git a/src/link_check.c b/src/link_check.c index 54e70eb..073fb4b 100644 --- a/src/link_check.c +++ b/src/link_check.c @@ -24,7 +24,7 @@ #include <stdio.h> - +__attribute__((visibility("default"))) int main(void) { diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index ebe997c..62b5fd0 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -3,6 +3,10 @@ add_custom_target(check COMMAND ${CMAKE_CTEST_COMMAND}) add_definitions(-DTEST_DATA_DIR="${CMAKE_CURRENT_SOURCE_DIR}/data") +# restore default visiblity to workaround linker issue +set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fvisibility=default") +set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fvisibility=default") + set(test_list test_header_parser test_ppb_char_set