diff --git a/configure b/configure
index c6fb3449292e1ae307a0c5b1176a9c532dc91bbd..46b4815f2ead153d2ee598601161ace72d37431d 100755
--- a/configure
+++ b/configure
@@ -7011,7 +7011,7 @@ EOF
 
 for lib in $LIBRARY_LIST; do
     lib_deps="$(eval echo \$${lib}_deps)"
-    echo ${lib}_deps=\"$lib_deps\" >> ffbuild/config.sh
+    echo ${lib}_deps=\"$lib_deps\" >> $TMPH
 done
 
 cp_if_changed $TMPH ffbuild/config.sh