Skip to content

Commit 4c1b6f9

Browse files
committed
Fix Haiku
1 parent 820536e commit 4c1b6f9

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

cmake/cmake/modules/PHP/Package/LibXml2.cmake

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,13 @@ macro(_php_package_libxml2_download)
8383
list(APPEND options "-DZLIB_ROOT=${INSTALL_DIR}")
8484
endif()
8585

86+
# LibXml2 has hardcoded dl library check, while, for example, on Haiku
87+
# dlopen is in root library.
88+
# https://gitlab.gnome.org/GNOME/libxml2/-/merge_requests/331
89+
if(CMAKE_SYSTEM_NAME STREQUAL "Haiku")
90+
list(APPEND options "-DLIBXML2_WITH_MODULES=OFF")
91+
endif()
92+
8693
ExternalProject_Add(
8794
LibXml2
8895
STEP_TARGETS configure build install

0 commit comments

Comments
 (0)