In lib/configure there is this snippet: c++ test_readline.cc -lreadline -ltermcap
running it fails $ c++ test_readline.cc -lreadline -ltermcap /usr/lib/gcc/x86_64-pc-linux-gnu/7.4.0/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -ltermcap collect2: error: ld returned 1 exit status $ even though libtermcap is there: $ ls -l /usr/lib64/libtermcap.so.2* lrwxrwxrwx 1 root root 19 Feb 1 20:17 /usr/lib64/libtermcap.so.2 -> libtermcap.so.2.0.8 -rwxr-xr-x 1 root root 18384 Feb 1 20:17 /usr/lib64/libtermcap.so.2.0.8 $ Now if I drop the termcap part, it works perfectly fine: $ c++ test_readline.cc -lreadline So, apart from gcc emitting that strange error, why is there a -ltermcap there ? Is it there so gnucap compiles on historic unixes or what ? Regards, /Karl Hammar
