docs: Update 3 files
Some checks failed
dropshell-build multiarch / build (linux/amd64) (push) Successful in 4m48s
dropshell-build multiarch / build (linux/arm64) (push) Failing after 10m55s
dropshell-build multiarch / create-manifest (push) Has been skipped

This commit is contained in:
Your Name
2025-06-29 18:21:20 +12:00
parent b83f4474da
commit a8d4b43039
3 changed files with 37 additions and 14 deletions

View File

@ -183,6 +183,22 @@ RUN curl -LO https://github.com/libcpr/cpr/archive/refs/tags/${CPR_VERSION}.tar.
make install && \
cd / && rm -rf /tmp/cpr-${CPR_VERSION} /tmp/${CPR_VERSION}.tar.gz
# Fix CPR CMake config to provide a static-only target
RUN cat > /usr/local/lib/cmake/cpr/cprConfig-static.cmake << 'EOF'
# Static-only CPR configuration that avoids CURL dependency issues
# Create the static CPR target
add_library(cpr::cpr_static STATIC IMPORTED)
set_target_properties(cpr::cpr_static PROPERTIES
IMPORTED_LOCATION "${CMAKE_CURRENT_LIST_DIR}/../../../lib/libcpr.a"
INTERFACE_INCLUDE_DIRECTORIES "${CMAKE_CURRENT_LIST_DIR}/../../../include"
INTERFACE_LINK_LIBRARIES "/usr/local/lib/libcurl.a;/usr/local/lib64/libssl.a;/usr/local/lib64/libcrypto.a;/usr/lib/libz.a;/usr/lib/libzstd.a;lzma;dl"
)
# Provide an alias for convenience
add_library(cpr::static ALIAS cpr::cpr_static)
EOF
ARG MARIADB_CONNECTOR_VERSION=3.4.5
WORKDIR /tmp