Preprocessor #if statement doesn't work in library

If you conditionally include a library based on a macro, set lib_ldf_mode accordingly.