1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2026-05-29 11:37:34 -04:00

fix(external): disable -Werror=format-security for cspice ExternalProject on Linux

Agent-Logs-Url: https://github.com/f4exb/sdrangel/sessions/6836e1ac-619b-460b-a5f8-21c542826bc8

Co-authored-by: f4exb <6192319+f4exb@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot] 2026-05-04 08:31:38 +00:00 committed by GitHub
parent aade98f84c
commit 3717ccf4e5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -864,7 +864,11 @@ if(ENABLE_FEATURE_STARTRACKER)
elseif (LINUX)
# We need a shared library on Linux, as the static library has non PIC code, and we need to link it into a shared library
set(CSPICE_LIBRARIES "${EXTERNAL_BUILD_LIBRARIES}/lib${LIB_SUFFIX}/libcspice.so" CACHE INTERNAL "")
set(CSPICE_ARGS "-DCSPICE_BUILD_STATIC_LIBRARY=OFF")
# Disable -Werror=format-security for cspice only: distro hardening flags (e.g. Ubuntu Noble)
# inject -Werror=format-security which fails cspice sources that lack -Wformat.
set(CSPICE_ARGS "-DCSPICE_BUILD_STATIC_LIBRARY=OFF"
"-DCMAKE_C_FLAGS=-Wno-error=format-security"
"-DCMAKE_CXX_FLAGS=-Wno-error=format-security")
elseif (APPLE)
set(CSPICE_LIBRARIES "${EXTERNAL_BUILD_LIBRARIES}/cspice/src/cspice-build/lib/libcspice.a" CACHE INTERNAL "")
endif()