configure --cache-file option is broken
Summary
Use of configure --cache-file
option breaks second+ build (but the first build works). Subsequent builds can pass only after deleting the cache file.
BIND version used
It got broken by b5a5eed7.
Steps to reproduce
autoreconfig -fiv
./configure --cache-file=/tmp/somewhere
git clean -xdf
git restore .
autoreconfig -fiv
./configure --cache-file=/tmp/somewhere
What is the current bug behavior?
Second compilation (using the cache file) fails with mysterious error during linking:
libtool: link: ccache gcc -shared -fPIC -DPIC netmgr/.libs/libisc_la-netmgr.o netmgr/.libs/libisc_la-tcp.o netmgr/.libs/libisc_la-tcpdns.o netmgr/.libs/libisc_la-timer.o netmgr/.libs/libisc_la-tlsdns.o netmgr/.libs/libisc_la-udp.o netmgr/.libs/libisc_la-uv-compat.o netmgr/.libs/libisc_la-uverr2result.o .libs/libisc_la-aes.o .libs/libisc_la-app.o .libs/libisc_la-assertions.o .libs/libisc_la-astack.o .libs/libisc_la-backtrace.o .libs/libisc_la-base32.o .libs/libisc_la-base64.o .libs/libisc_la-bind9.o .libs/libisc_la-buffer.o .libs/libisc_la-commandline.o .libs/libisc_la-condition.o .libs/libisc_la-counter.o .libs/libisc_la-crc64.o .libs/libisc_la-dir.o .libs/libisc_la-entropy.o .libs/libisc_la-errno.o .libs/libisc_la-errno2result.o .libs/libisc_la-error.o .libs/libisc_la-event.o .libs/libisc_la-file.o .libs/libisc_la-fsaccess.o .libs/libisc_la-fsaccess_common.o .libs/libisc_la-glob.o .libs/libisc_la-hash.o .libs/libisc_la-heap.o .libs/libisc_la-hex.o .libs/libisc_la-hmac.o .libs/libisc_la-ht.o .libs/libisc_la-httpd.o .libs/libisc_la-interfaceiter.o .libs/libisc_la-iterated_hash.o .libs/libisc_la-lex.o .libs/libisc_la-lib.o .libs/libisc_la-log.o .libs/libisc_la-managers.o .libs/libisc_la-md.o .libs/libisc_la-mem.o .libs/libisc_la-meminfo.o .libs/libisc_la-mutex.o .libs/libisc_la-mutexblock.o .libs/libisc_la-net.o .libs/libisc_la-netaddr.o .libs/libisc_la-netscope.o .libs/libisc_la-nonce.o .libs/libisc_la-openssl_shim.o .libs/libisc_la-os.o .libs/libisc_la-parseint.o .libs/libisc_la-pool.o .libs/libisc_la-portset.o .libs/libisc_la-quota.o .libs/libisc_la-radix.o .libs/libisc_la-random.o .libs/libisc_la-ratelimiter.o .libs/libisc_la-regex.o .libs/libisc_la-region.o .libs/libisc_la-resource.o .libs/libisc_la-result.o .libs/libisc_la-rwlock.o .libs/libisc_la-safe.o .libs/libisc_la-serial.o .libs/libisc_la-siphash.o .libs/libisc_la-sockaddr.o .libs/libisc_la-stats.o .libs/libisc_la-stdio.o .libs/libisc_la-stdtime.o .libs/libisc_la-string.o .libs/libisc_la-symtab.o .libs/libisc_la-syslog.o .libs/libisc_la-task.o .libs/libisc_la-taskpool.o .libs/libisc_la-thread.o .libs/libisc_la-time.o .libs/libisc_la-timer.o .libs/libisc_la-tls.o .libs/libisc_la-tm.o .libs/libisc_la-trampoline.o .libs/libisc_la-url.o .libs/libisc_la-utf8.o netmgr/.libs/libisc_la-http.o netmgr/.libs/libisc_la-tlsstream.o -luv -ldl -lssl -lcrypto -lz -ljemalloc -ljson-c -lnghttp2 -lxml2 -lc -O0 -ggdb3 -march=native -pthread -soname libisc-9.18.3-dev.so -o .libs/libisc-9.18.3-dev.so
gcc: error: unrecognized command-line option '-soname'
What is the expected correct behavior?
Well, it compiles even second time.