Ninja and ccache - faster builds!
Some checks failed
Dropshell Test / Build_and_Test (push) Failing after 1m28s
Some checks failed
Dropshell Test / Build_and_Test (push) Failing after 1m28s
This commit is contained in:
@ -116,18 +116,22 @@ FetchContent_MakeAvailable(nlohmann_json)
|
||||
# Find zlib
|
||||
find_package(ZLIB REQUIRED)
|
||||
|
||||
# Force static linking for zlib
|
||||
set(ZLIB_USE_STATIC_LIBS TRUE)
|
||||
set(ZLIB_LIBRARIES z)
|
||||
|
||||
# Link libraries
|
||||
target_link_libraries(dropshell PRIVATE
|
||||
libassert::assert
|
||||
cpptrace::cpptrace
|
||||
httplib::httplib
|
||||
nlohmann_json::nlohmann_json
|
||||
ZLIB::ZLIB
|
||||
${ZLIB_LIBRARIES}
|
||||
)
|
||||
|
||||
# Set static linking flags
|
||||
set_target_properties(dropshell PROPERTIES
|
||||
LINK_FLAGS "-static-libstdc++ -static-libgcc -Wl,-Bstatic -Wl,-Bdynamic"
|
||||
LINK_FLAGS "-static-libstdc++ -static-libgcc -Wl,-Bstatic -lz -Wl,-Bdynamic"
|
||||
)
|
||||
|
||||
# Install targets
|
||||
|
Reference in New Issue
Block a user