Skip to content

Commit

Permalink
slirp: Add -fvisibility=hidden to glib stub
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
nadiaholmquist committed Jun 24, 2024
1 parent cbb0f4b commit db20771
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/frontend/libslirp/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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()

0 comments on commit db20771

Please sign in to comment.