diff --git a/lib/functions.in b/lib/functions.in index 0c5b55b..f6eb0ad 100644 --- a/lib/functions.in +++ b/lib/functions.in @@ -337,18 +337,6 @@ function eval_config_command() { create_config_cache >> $config_cache fi - if [ -n "$configcachefile" ]; then - for x in $configcachefile; do - if [ -e $x ]; then - cat <<-EOT - - # cache file: $x - EOT - cat "$x" - fi - done - fi >> $config_cache - if [ -n "$configcache" ]; then cat <<-EOT @@ -618,6 +606,18 @@ create_config_cache() { EOT fi + + if [ -n "$configcachefile" ]; then + for x in $configcachefile; do + if [ -e $x ]; then + cat <<-EOT + + # cache file: $x + EOT + cat "$x" + fi + done + fi } # Abort build before actual build starts