env = DefaultEnvironment() lib = env.BuildLibrary(target='mylib', source=['file1.cpp', 'file2.cpp'], LIBS=[], LIBPATH=[])
env = DefaultEnvironment() lib = env.BuildLibrary(target='mylib', source=['file1.cpp', 'file2.cpp'], LIBS=['boost_thread'], LIBPATH=['/usr/lib'])In this example, we create a shared library that depends on the external boost_thread library. We include this library using the LIBS and LIBPATH arguments. To determine the package library, you would need to look at the source files and the dependencies used by the library. In example 2 above, the boost_thread library is used, indicating that the package requires the boost library to be installed.