Skip to content

Commit

Permalink
djvulibre: symbols visibility
Browse files Browse the repository at this point in the history
  • Loading branch information
benoit-pierre authored and Frenzie committed Jun 24, 2024
1 parent f0fa5fc commit 3134fc6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions thirdparty/djvulibre/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ string(APPEND CFLAGS " -Wno-error")
# Fix build error when compiling with -std=gnu++17: ISO
# C++17 does not allow 'register' storage class specifier.
string(APPEND CXXFLAGS " -Wno-register -Wno-error=register")
# Fix symbols visibility.
string(APPEND CFLAGS " -fvisibility=hidden")
string(APPEND CXXFLAGS " -fvisibility=hidden -fvisibility-inlines-hidden")

list(APPEND CFG_CMD COMMAND env)
append_autotools_vars(CFG_CMD)
Expand Down

0 comments on commit 3134fc6

Please sign in to comment.