Skip to content

Commit

Permalink
fix: remove symbol visibility settings
Browse files Browse the repository at this point in the history
- Remove CMAKE_CXX_VISIBILITY_PRESET hidden
- Remove CMAKE_VISIBILITY_INLINES_HIDDEN
- Remove -fvisibility=hidden compile option

This change allows symbols to be visible by default in the shared library.

Log: tag 1.0.16
  • Loading branch information
Johnson-zs authored and deepin-bot[bot] committed Jan 15, 2025
1 parent 61d540c commit 01c9aa3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
6 changes: 1 addition & 5 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,8 @@ project(docparser VERSION 1.0.0 LANGUAGES CXX)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)

# 在顶层CMakeLists.txt中添加
set(CMAKE_CXX_VISIBILITY_PRESET hidden)
set(CMAKE_VISIBILITY_INLINES_HIDDEN YES)

# 安全编译选项
add_compile_options(-fstack-protector-strong -D_FORTITY_SOURCE=1 -fvisibility=hidden)
add_compile_options(-fstack-protector-strong -D_FORTITY_SOURCE=1)
add_link_options(-z noexecstack -pie -fPIC)

# 设置安装路径
Expand Down
6 changes: 6 additions & 0 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
docparser (1.0.16) unstable; urgency=medium

* remove symbol visibility settings

-- Zhang Sheng <[email protected]> Wed, 15 Jan 2025 18:00:49 +0800

docparser (1.0.15) unstable; urgency=medium

* use so name
Expand Down

0 comments on commit 01c9aa3

Please sign in to comment.