Starting with version 2.10 there are now several search paths for files needed by the linker: One for libraries, one for object files and one for config files.
The library search path contains in this order:
/usr/lib/cc65/lib on
Linux systems.LD65_LIB if it is defined.CC65_LIB if it is defined.
Please note that use of this environment variable is obsolete and may
get removed in future versions.
--lib-path option on the command line.The object file search path contains in this order:
/usr/lib/cc65/lib on
Linux systems.LD65_OBJ if it is defined.CC65_LIB if it is defined.
Please note that use of this environment variable is obsolete and may
get removed in future versions.
--obj-path option on the command line.The config file search path contains in this order:
/usr/lib/cc65/lib on
Linux systems.LD65_CFG if it is defined.
--cfg-path option on the command line.