aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/capstone/002-force-exportname-capstone.patch
diff options
context:
space:
mode:
authorEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
committerEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
commit54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch)
treed915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/capstone/002-force-exportname-capstone.patch
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/ports/capstone/002-force-exportname-capstone.patch')
-rw-r--r--vcpkg/ports/capstone/002-force-exportname-capstone.patch22
1 files changed, 22 insertions, 0 deletions
diff --git a/vcpkg/ports/capstone/002-force-exportname-capstone.patch b/vcpkg/ports/capstone/002-force-exportname-capstone.patch
new file mode 100644
index 0000000..50735f5
--- /dev/null
+++ b/vcpkg/ports/capstone/002-force-exportname-capstone.patch
@@ -0,0 +1,22 @@
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 4797bc57..929eee49 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -658,7 +658,7 @@ target_include_directories(capstone PUBLIC
+ if(BUILD_STATIC_LIBS)
+ add_library(capstone_static STATIC $<TARGET_OBJECTS:capstone>)
+ # Use normal capstone name. Otherwise we get libcapstone_static.a
+- set_target_properties(capstone_static PROPERTIES OUTPUT_NAME "capstone")
++ set_target_properties(capstone_static PROPERTIES OUTPUT_NAME "capstone" EXPORT_NAME "capstone")
+ target_include_directories(capstone_static PUBLIC
+ $<BUILD_INTERFACE:${PROJECT_SOURCE_DIR}/include>
+ )
+@@ -668,7 +668,7 @@ if(BUILD_SHARED_LIBS)
+ set_property(TARGET capstone PROPERTY POSITION_INDEPENDENT_CODE 1)
+ add_library(capstone_shared SHARED $<TARGET_OBJECTS:capstone>)
+ # Use normal capstone name. Otherwise we get libcapstone_shared.so
+- set_target_properties(capstone_shared PROPERTIES OUTPUT_NAME "capstone")
++ set_target_properties(capstone_shared PROPERTIES OUTPUT_NAME "capstone" EXPORT_NAME "capstone")
+ set_target_properties(capstone_shared PROPERTIES
+ VERSION ${PROJECT_VERSION}
+ SOVERSION ${PROJECT_VERSION_MAJOR}