slirp: Add -fvisibility=hidden to glib stub

On Linux, our stubbed glib functions were conflicting with the ones from
real glib, which gets used by Qt when we're running on a GTK-based
desktop. Avoid a crash by not exposing them.
This commit is contained in:
Nadia Holmquist Pedersen 2024-06-24 05:25:00 +02:00
parent cbb0f4b872
commit db20771ef3
1 changed files with 2 additions and 0 deletions

View File

@ -62,4 +62,6 @@ elseif(HAIKU)
target_Link_libraries(slirp PRIVATE network)
elseif(APPLE)
target_link_libraries(slirp PRIVATE resolv)
else()
set_source_files_properties(glib/glib.c PROPERTIES COMPILE_FLAGS -fvisibility=hidden)
endif()