mirror of
https://github.com/transmission/transmission.git
synced 2025-12-20 02:18:42 +00:00
fix: link libquota on NetBSD to fix FTBFS (#4863)
This commit is contained in:
@@ -708,6 +708,11 @@ if(HAVE_LIBM)
|
||||
set(LIBM_LIBRARY m)
|
||||
endif()
|
||||
|
||||
check_library_exists(quota quotacursor_skipidtype "" HAVE_LIBQUOTA)
|
||||
if(HAVE_LIBQUOTA)
|
||||
set(LIBQUOTA_LIBRARY quota)
|
||||
endif()
|
||||
|
||||
set(TR_NETWORK_LIBRARIES)
|
||||
if(WIN32)
|
||||
list(APPEND TR_NETWORK_LIBRARIES iphlpapi ws2_32)
|
||||
|
||||
@@ -279,6 +279,7 @@ target_link_libraries(${TR_NAME}
|
||||
libb64::libb64
|
||||
${LIBINTL_LIBRARY}
|
||||
${LIBM_LIBRARY}
|
||||
${LIBQUOTA_LIBRARY}
|
||||
${TR_NETWORK_LIBRARIES}
|
||||
jsonsl
|
||||
utf8::cpp
|
||||
|
||||
Reference in New Issue
Block a user