/usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: main.o: undefined reference to symbol 'cbreak' /usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: /lib64/libtinfo.so.6: error adding symbols: DSO missing from command line collect2: error: ld returned 1 exit status make: *** [Makefile:23: cdircmp] Error 1
Created attachment 688629 [details] cdircmp-0.3-r2:20210227-200454.log buildlog
To clarify what happened here, it was because of -Wl,--as-needed being in CFLAGS rather than only LDFLAGS