diff --git a/srcpkgs/mod_wsgi/patches/cross-python.patch b/srcpkgs/mod_wsgi/patches/cross-python.patch
index 6882cf9b135..8157e1046de 100644
--- a/srcpkgs/mod_wsgi/patches/cross-python.patch
+++ b/srcpkgs/mod_wsgi/patches/cross-python.patch
@@ -108,7 +108,7 @@
 -        import sysconfig; \
 -        stdout.write(sysconfig.get_config_var("LIBS"))'`
 -fi
-+PYTHONLIBDIR=$($PYTHON-config --ldflags)
++LDLIBS1=$($PYTHON-config --ldflags --embed)
  
  CFLAGS1=""
  for arg in ${CFLAGS}
diff --git a/srcpkgs/mod_wsgi/template b/srcpkgs/mod_wsgi/template
index 58fdf90ea18..0e809221294 100644
--- a/srcpkgs/mod_wsgi/template
+++ b/srcpkgs/mod_wsgi/template
@@ -1,7 +1,7 @@
 # Template file for 'mod_wsgi'
 pkgname=mod_wsgi
 version=4.9.4
-revision=1
+revision=2
 build_style=gnu-configure
 hostmakedepends="python3 perl automake libtool apache-devel"
 makedepends="apache-devel python3-devel apr-devel"
@@ -13,7 +13,6 @@ changelog="https://modwsgi.readthedocs.io/en/latest/release-notes/version-${vers
 distfiles="https://github.com/GrahamDumpleton/mod_wsgi/archive/${version}.tar.gz"
 checksum=ee926a3fd5675890b908ebc23db1f8f7f03dc3459241abdcf35d46c68e1be29b
 lib32disabled=yes
-LDFLAGS=-lpython3
 
 pre_configure() {
 	if [ "$CROSS_BUILD" ]; then