mirror of
https://github.com/ggml-org/llama.cpp.git
synced 2025-10-27 08:21:30 +00:00
Manually link -lbsd to resolve flock symbol on AIX (#16610)
This commit is contained in:
committed by
GitHub
parent
061f0eff02
commit
fe6a9882ac
@@ -6,3 +6,8 @@ target_compile_features(${TARGET} PRIVATE cxx_std_17)
|
|||||||
if(LLAMA_TOOLS_INSTALL)
|
if(LLAMA_TOOLS_INSTALL)
|
||||||
install(TARGETS ${TARGET} RUNTIME)
|
install(TARGETS ${TARGET} RUNTIME)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
if (CMAKE_SYSTEM_NAME MATCHES "AIX")
|
||||||
|
# AIX's flock() function comes from libbsd.a
|
||||||
|
target_link_libraries(${TARGET} PRIVATE -lbsd)
|
||||||
|
endif()
|
||||||
|
|||||||
@@ -13,5 +13,11 @@ endif ()
|
|||||||
if(LLAMA_TOOLS_INSTALL)
|
if(LLAMA_TOOLS_INSTALL)
|
||||||
install(TARGETS ${TARGET} RUNTIME)
|
install(TARGETS ${TARGET} RUNTIME)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
if (CMAKE_SYSTEM_NAME MATCHES "AIX")
|
||||||
|
# AIX's flock() function comes from libbsd.a
|
||||||
|
target_link_libraries(${TARGET} PRIVATE -lbsd)
|
||||||
|
endif()
|
||||||
|
|
||||||
target_link_libraries(${TARGET} PRIVATE common llama ${CMAKE_THREAD_LIBS_INIT} ${LLAMA_RUN_EXTRA_LIBS})
|
target_link_libraries(${TARGET} PRIVATE common llama ${CMAKE_THREAD_LIBS_INIT} ${LLAMA_RUN_EXTRA_LIBS})
|
||||||
target_compile_features(${TARGET} PRIVATE cxx_std_17)
|
target_compile_features(${TARGET} PRIVATE cxx_std_17)
|
||||||
|
|||||||
Reference in New Issue
Block a user