1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2025-03-04 18:48:06 +00:00

fix: link libquota on NetBSD to fix FTBFS (#4863)

This commit is contained in:
Thomas Klausner 2023-02-13 19:04:14 +01:00 committed by GitHub
parent 25b50a7dff
commit 62a60b4ea4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 0 deletions

View file

@ -708,6 +708,11 @@ if(HAVE_LIBM)
set(LIBM_LIBRARY m) set(LIBM_LIBRARY m)
endif() endif()
check_library_exists(quota quotacursor_skipidtype "" HAVE_LIBQUOTA)
if(HAVE_LIBQUOTA)
set(LIBQUOTA_LIBRARY quota)
endif()
set(TR_NETWORK_LIBRARIES) set(TR_NETWORK_LIBRARIES)
if(WIN32) if(WIN32)
list(APPEND TR_NETWORK_LIBRARIES iphlpapi ws2_32) list(APPEND TR_NETWORK_LIBRARIES iphlpapi ws2_32)

View file

@ -279,6 +279,7 @@ target_link_libraries(${TR_NAME}
libb64::libb64 libb64::libb64
${LIBINTL_LIBRARY} ${LIBINTL_LIBRARY}
${LIBM_LIBRARY} ${LIBM_LIBRARY}
${LIBQUOTA_LIBRARY}
${TR_NETWORK_LIBRARIES} ${TR_NETWORK_LIBRARIES}
jsonsl jsonsl
utf8::cpp utf8::cpp