--- xbmc-16.0-Jarvis.orig/m4/ax_python_devel.m4	2016-02-20 16:21:19.000000000 +0100
+++ xbmc-16.0-Jarvis/m4/ax_python_devel.m4	2016-03-14 04:38:00.080254255 +0100
@@ -289,7 +289,7 @@ EOD`
 	# save current global flags
 	ac_save_LIBS="$LIBS"
 	ac_save_CPPFLAGS="$CPPFLAGS"
-	LIBS="$ac_save_LIBS $PYTHON_LDFLAGS $PYTHON_EXTRA_LDFLAGS $PYTHON_EXTRA_LIBS"
+	LIBS="$ac_save_LIBS $PYTHON_LDFLAGS"
 	CPPFLAGS="$ac_save_CPPFLAGS $PYTHON_CPPFLAGS"
 	AC_LANG_PUSH([C])
 	AC_LINK_IFELSE([
