But sometimes a certain library isn't used in the object files, ie a simple command line app doesn't do any text magic, but links against libtinfo. To avoid that, one can use option -nodeflibs and afterwards add the libs needed one by one. But this gets a pain in the rear in case of complex code when using the fbc command line for linking. In that case it's better to directly build a custom command line for the ld-linker, which is complicated and hard to maintain as well.
From my point of view it would be nice to have an option that excludes just one (or a list of) default library, like
Code: Select all
fbc -nodeflib tinfo,dl