Skip to content

Commit

Permalink
chore: catch --as-needed (see gh #184)
Browse files Browse the repository at this point in the history
  • Loading branch information
mhx committed Jan 24, 2024
1 parent 34ef888 commit b926fc4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,10 @@ if(CMAKE_CXX_COMPILER_ID STREQUAL "MSVC")
endforeach()

set(MSVC_USE_STATIC_RUNTIME ON CACHE BOOL "static build")
else()
if(CMAKE_EXE_LINKER_FLAGS MATCHES "--as-needed")
message(FATAL_ERROR "DwarFS cannot be built with --as-needed")
endif()
endif()

set(ZSTD_INCLUDE_DIR
Expand Down

0 comments on commit b926fc4

Please sign in to comment.