# Must drop LIBS before running configure of FoX.
# Otherwise configure will fail early.
#
# Åke Sandgren, 20180712
diff -ru qe-6.3.orig/install/extlibs_makefile qe-6.3/install/extlibs_makefile
--- qe-6.3.orig/install/extlibs_makefile	2018-07-06 17:36:48.000000000 +0200
+++ qe-6.3/install/extlibs_makefile	2018-07-13 08:38:25.698151677 +0200
@@ -89,7 +89,7 @@
         mkdir ../FoX; \
 	(gzip -dc ../archive/fox.tgz | (cd ../FoX; tar -xvf -)); \
 	cd ../FoX/fox/; export FC=$(F90); export FCFLAGS="$(FOX_FLAGS)"; \
-	./configure --prefix=$(TOPDIR)/FoX ;\
+	unset LIBS; ./configure --prefix=$(TOPDIR)/FoX ;\
 	$(MAKE) install; cd ../; rm -fr fox;fi
 # ELPA
 libelpa : libelpa_$(ELPA_LIBS_SWITCH)
