The environment variable LCD_OPTS is parsed prior to the command line arguments. This may be used to add library directories and other options. See the overview for a standard setup.
lcd -mklib my_lib.lThe result of this is a pair of files, my_lib.bcode and my_lib.dcode.
lcd -lmy_lib -llib2 main_prog.lNote that this looks for the dcode and bcode files for my_lib and lib2 in the directories specified by -L flags. If they are in the current directory you must put -L. in your LCD_OPTS environment variable.