File tree Expand file tree Collapse file tree 3 files changed +10
-0
lines changed Expand file tree Collapse file tree 3 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -27,6 +27,9 @@ endif()
2727option (BUILD_SHARED_LIBS "Build shared libraries (.dll/.so)" ON )
2828option (BUILD_STATIC_LIBS "Build static libraries (.lib/.a)" OFF )
2929
30+ # Shared library versioning support
31+ set (CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,--version-script=${CMAKE_CURRENT_SOURCE_DIR} /libllhttp.map" )
32+
3033# Source code
3134set (LLHTTP_SOURCES
3235 ${CMAKE_CURRENT_SOURCE_DIR} /src/llhttp.c
Original file line number Diff line number Diff line change @@ -54,6 +54,7 @@ release: clean generate
5454 cp -rf src/common.gypi release/
5555 sed s/_RELEASE_/$(RELEASE ) / CMakeLists.txt > release/CMakeLists.txt
5656 cp -rf libllhttp.pc.in release/
57+ cp -rf libllhttp.map release/
5758 cp -rf README.md release/
5859 cp -rf LICENSE release/
5960
Original file line number Diff line number Diff line change 1+ {
2+ global:
3+ *;
4+ local:
5+ llhttp__internal_*;
6+ };
You can’t perform that action at this time.
0 commit comments