--- configure.orig	2021-10-03 21:07:57 UTC
+++ configure
@@ -1836,9 +1836,9 @@ if test "$_wxwidgets" = auto ; then
 fi
 
 if test "$_wxwidgets" = yes ; then
-	_wxincludes="`$_wxconfig --prefix="$_wxpath" --cflags`"
-	_wxlibs="`$_wxconfig --prefix="$_wxpath" --libs`"
-	_wxstaticlibs="`$_wxconfig --prefix="$_wxpath" --static --libs 2> /dev/null`"
+	_wxincludes="`$_wxconfig --cflags`"
+	_wxlibs="`$_wxconfig --libs`"
+	_wxstaticlibs="`$_wxconfig --static --libs 2> /dev/null`"
 	_wxstaticlibs=`echo $_wxstaticlibs | sed 's|-lpng||' | sed 's|-lz||'`
 	# _wxstaticlibs may contain non-static libraries that we also have in _wxstaticlibs.
 	# remove those to avoid dependency on non-static libraries
