Closed Begasus closed 1 year ago
https://github.com/gulrak/filesystem/blob/master/cmake/GhcHelper.cmake#L48
Add something like:
if (HAIKU)
target_link_libraries(${targetName} -lnetwork)
endif()
You may also need for the second macro, depends which part(s) require libnetwork.
@jessicah thanks for the tip, following the fix for Solaris I managed to get a full build. :) patch comming in later :)
https://github.com/gulrak/filesystem/commit/91e71f7f5430a703b27d297dad7658be347f8b39
Should be OK now, did a clean build on Haiku with this PR as a patch, ran the tests (95% passed), only thing I'm missing is an option to disable Werror, but got a fix for that from Gentoo: https://gitweb.gentoo.org/repo/gentoo.git/tree/dev-cpp/gulrak-filesystem/gulrak-filesystem-1.5.12.ebuild#n22
Would be nice if this gets merged before a new release: https://github.com/gulrak/filesystem/issues/164 :)
Created a PR at haikuports to have this available on Haiku: https://github.com/haikuports/haikuports/pull/7865
Looks good to me. If the pipeline goes through, I'll merge it. Thanks for the work!
Don't merge yet, need to see if I can find a way to link it to libnetwork on Haiku (for bind and socket).