A custom build system, good luck :/
See https://github.com/Serosis/UQM-MegaMod/blob/master/build/unix/README.crossbuild
Setting the PKG_CONFIG_PATH variable correctly should be enough.
export PKG_CONFIG_LIBDIR=${DEVKITPRO}/portlibs/switch/lib/pkgconfig
Is probably easier when you try to...