libobs,obs-outputs: Fix librtmp1 interference

Details in #6226, basically this fixes an issue where OBS links
to the system-installed librtmp1, which is incompatible with our
librtmp.

Co-authored-by: ewhac <ewhac@ewhac.org>
This commit is contained in:
tt2468 2022-04-24 22:35:09 -07:00 committed by Jim
parent 961b75b58c
commit 9168797361
2 changed files with 3 additions and 1 deletions

View file

@ -50,7 +50,7 @@
#ifdef _MSC_VER
#define EXPORT __declspec(dllexport)
#else
#define EXPORT
#define EXPORT __attribute__((visibility("default")))
#endif
#include <stddef.h>

View file

@ -96,9 +96,11 @@ if(ENABLE_RTMPS STREQUAL "AUTO" OR ENABLE_RTMPS STREQUAL "ON")
target_link_libraries(obs-outputs PRIVATE ${FOUNDATION_FRAMEWORK}
${SECURITY_FRAMEWORK})
set_target_properties(obs-outputs PROPERTIES CXX_VISIBILITY_PRESET hidden)
set_target_properties(obs-outputs PROPERTIES C_VISIBILITY_PRESET hidden)
elseif(OS_POSIX)
set_target_properties(obs-outputs PROPERTIES CXX_VISIBILITY_PRESET hidden)
set_target_properties(obs-outputs PROPERTIES C_VISIBILITY_PRESET hidden)
endif()
endif()
else()