8.3.9 L: Library Path Option

The -L dir option or its alias --library-path dir adds dir to search path the linker will use to find libraries.

This option adds path dir to the list of paths that xc32-ld will search for archive libraries and xc32-ld control scripts. You may use this option any number of times. The directories are searched in the order in which they are specified on the command line. All -L options apply to all libraries specified using -l options, regardless of the order in which the options appear. The library paths can also be specified in a link script with the SEARCH_DIR command. Directories specified this way are searched at the point in which the linker script appears in the command line.