Skip to content

Commit 851ca31

Browse files
committed
Resolve (non-fatal) linker warning by statically linking dom against lexbor if dom is built statically
1 parent 7d135d9 commit 851ca31

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/dom/config.w32

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ if (PHP_DOM == "yes") {
2626
AC_DEFINE("HAVE_DOM", 1, "Define to 1 if the PHP extension 'dom' is available.");
2727

2828
if (!PHP_DOM_SHARED) {
29-
ADD_FLAG("CFLAGS_DOM", "/D LIBXML_STATIC ");
29+
ADD_FLAG("CFLAGS_DOM", "/D LIBXML_STATIC /D LEXBOR_STATIC ");
3030
} else {
3131
if (!CHECK_LIB("libxml2.lib", "dom")) {
3232
WARNING("dom support can't be enabled, libxml is not found")

0 commit comments

Comments
 (0)