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:
parent
cbb0f4b872
commit
db20771ef3
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue