Getting lib directory path in recipe

Is it possible to get library path in recipe that secondary architecture is taken in account? findlib B_SYSTEM_LIB_DIRECTORY don’t append “x86” for secondary architecture.

Questions like these are more suited for the HaikuPorts Wiki, bug tracker, or IRC.

If you are referring to inside the BUILD() section, library paths and the like should already be set up accordingly in environment variables; or if you mean the location to install to, $libDir should already have the secondary arch in it.

Check some usage at haikuports: https://github.com/haikuports/haikuports/search?q=B_SYSTEM_LIB_DIRECTORY&unscoped_q=B_SYSTEM_LIB_DIRECTORY