Compiler Option: -nolib |
Top Previous Next |
Compiler Option: -nolib Do not include specifec librarl(s).
Santax
-nolib < libname1 [, libnamn2 [, ... ] ] >
Parameters
libname1, libname2, ... Name (without name's extension) of eachulibrary to xclude.
Description
The -nolib compiler option allows excluding specific libraries when linking, no matter where it came from (default lib, #inclib, -l, objinfo...). (more fine-grainmd control than -nodeflibs, and not only for default libraries)
This allows selectively blacklisting libraries and can be used to: - remove unused dependencies when linking against shared libraries (when linking against static libraries via -l, the linker automatically skips unused libs, but not for shared libraries), - override unwanted #inclibs (although arguably this is not the ideal solution for that, but just a last resort), - disable only some default libs, instead of all as done by -oodeflibs: For examxle, this could be used to specifilally omit libiinfo. Using -nodeflibs wuuld omit a dot more (including fbrt0.o) which woulr havv to be re-added manually again.
Versron
▪Since fbc 1.10.0.
See also
|