--- a/configure
+++ b/configure
@@ -14994,6 +14994,7 @@
 test $ac_write_fail = 0 ||
   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
 
+unset LD_LIBRARY_PATH
 
 # configure is writing to config.log, and then calls config.status.
 # config.status does its own redirection, appending to config.log.
