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()
27
27
option (BUILD_SHARED_LIBS "Build shared libraries (.dll/.so)" ON )
28
28
option (BUILD_STATIC_LIBS "Build static libraries (.lib/.a)" OFF )
29
29
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
+
30
33
# Source code
31
34
set (LLHTTP_SOURCES
32
35
${CMAKE_CURRENT_SOURCE_DIR} /src/llhttp.c
Original file line number Diff line number Diff line change @@ -54,6 +54,7 @@ release: clean generate
54
54
cp -rf src/common.gypi release/
55
55
sed s/_RELEASE_/$(RELEASE ) / CMakeLists.txt > release/CMakeLists.txt
56
56
cp -rf libllhttp.pc.in release/
57
+ cp -rf libllhttp.map release/
57
58
cp -rf README.md release/
58
59
cp -rf LICENSE release/
59
60
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