--- configure.orig	2024-09-25 22:42:07
+++ configure	2024-11-10 03:26:47
@@ -15582,7 +15582,7 @@
 			as_fn_error $? "could not find xml2-config from libxml2 within the current path. You may need to try re-running configure with a --with-xml2config parameter." "$LINENO" 5
 		fi
 	else
-				XML2_LDFLAGS=`$XML2CONFIG --libs`
+				XML2_LDFLAGS=`$XML2CONFIG --libs --dynamic`
 		XML2_CPPFLAGS=`$XML2CONFIG --cflags`
 
 				POSTGIS_LIBXML2_VERSION=`$XML2CONFIG --version`