Status: Accepted
Owner: ----
Labels: Type-Defect Priority-Medium
New issue 11 by rcar...@
gmail.com: Shared library
https://bugs.chromium.org/p/webp2/issues/detail?id=11What steps will reproduce the problem?
1. diff --git a/CMakeLists.txt b/CMakeLists.txt
index e70ae31..d8e2bc4 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -38,6 +38,7 @@ if(NOT EMSCRIPTEN)
# Users can still explicitly opt-in to make a SIMD-enabled build.
set(WP2_ENABLE_SIMD_DEFAULT ON)
endif()
+option(BUILD_SHARED_LIBS "Build shared instead of static libraries." OFF)
option(WP2_ENABLE_SIMD "Enable any SIMD optimization."
${WP2_ENABLE_SIMD_DEFAULT})
set(WP2_ENABLE_CONTEXT_SWITCH
@@ -77,6 +78,10 @@ set(WP2_DEP_LIBRARIES)
set(WP2_DEP_INCLUDE_DIRS)
set(WP2_DEFINITIONS)
+if(BUILD_SHARED_LIBS)
+ set(CMAKE_POSITION_INDEPENDENT_CODE ON)
+endif()
+
if(NOT CMAKE_BUILD_TYPE)
set(CMAKE_BUILD_TYPE
"Release"
2.
3.
What is the expected output?
What do you see instead?
Please use labels and text to provide additional information.
--
You received this message because:
1. The project was configured to send all issue notifications to this address
You may adjust your notification preferences at:
https://bugs.chromium.org/hosting/settings