File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed
Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -7,9 +7,11 @@ include(ExternalProject)
77# clone repo only
88ExternalProject_Add(libkvscproducer-download
99 GIT_REPOSITORY https://github.com/awslabs/amazon-kinesis-video-streams-producer-c.git
10- GIT_TAG v1.5.3
10+ GIT_TAG static-curl-to-shared-producer
1111 SOURCE_DIR "${CMAKE_CURRENT_BINARY_DIR}/kvscproducer-src"
1212 BINARY_DIR "${CMAKE_CURRENT_BINARY_DIR}/kvscproducer-build"
13+ CMAKE_ARGS
14+ -DCURL_POSITION_INDEPENDENT_CODE=${CURL_POSITION_INDEPENDENT_CODE}
1315 CONFIGURE_COMMAND ""
1416 BUILD_COMMAND ""
1517 INSTALL_COMMAND ""
Original file line number Diff line number Diff line change @@ -57,6 +57,11 @@ endif()
5757add_definitions (-DKVS_CA_CERT_PATH="${CMAKE_CURRENT_SOURCE_DIR} /certs/cert.pem" )
5858add_definitions (-DCMAKE_DETECTED_CACERT_PATH)
5959
60+ # Instruct Producer C to build Curl with Position Independent Code (-fpic).
61+ # This is to allow a static Curl build to link with to a shared Producer Cpp build.
62+ if (BUILD_STATIC AND BUILD_FORCE_GSTREAMER_PLUGIN_SHARED)
63+ set (CURL_POSITION_INDEPENDENT_CODE TRUE )
64+ endif ()
6065
6166if (BUILD_DEPENDENCIES)
6267 if (NOT EXISTS ${KINESIS_VIDEO_OPEN_SOURCE_SRC} )
You can’t perform that action at this time.
0 commit comments