Skip to content

Commit

Permalink
Add support for -DCURL_POSITION_INDEPENDENT_CODE
Browse files Browse the repository at this point in the history
  • Loading branch information
stefankiesz committed Dec 20, 2024
1 parent 5fb356e commit c3a84a2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 3 additions & 1 deletion CMake/Dependencies/libcurl-CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@ set(CMAKE_ARGS
-DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE}
-DCMAKE_INSTALL_PREFIX=${OPEN_SRC_INSTALL_PREFIX}
-DBUILD_CURL_EXE=0
-DHTTP_ONLY=1)
-DHTTP_ONLY=1
-DCMAKE_POSITION_INDEPENDENT_CODE=${CURL_POSITION_INDEPENDENT_CODE}
)

# By default use openssl
if (USE_MBEDTLS)
Expand Down
3 changes: 2 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,8 @@ if(BUILD_DEPENDENCIES)
set(BUILD_ARGS -DBUILD_STATIC=${BUILD_STATIC}
-DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE}
-DUSE_OPENSSL=${USE_OPENSSL}
-DUSE_MBEDTLS=${USE_MBEDTLS})
-DUSE_MBEDTLS=${USE_MBEDTLS}
-DCURL_POSITION_INDEPENDENT_CODE=${CURL_POSITION_INDEPENDENT_CODE})
build_dependency(curl ${BUILD_ARGS})

endif()
Expand Down

0 comments on commit c3a84a2

Please sign in to comment.