build script: fix fluidsynth linking

This commit is contained in:
alexey.lysiuk 2020-12-28 10:48:51 +02:00
parent b40ae87b15
commit 40038b19b3

View file

@ -738,6 +738,11 @@ class FluidSynthTarget(CMakeStaticDependencyTarget):
def detect(self, builder: 'Builder') -> bool:
return os.path.exists(builder.source_path + 'fluidsynth.pc.in')
def configure(self, builder: 'Builder'):
# TODO: Figure out why private dependencies aren't pulled
self.options['CMAKE_EXE_LINKER_FLAGS'] = builder.run_pkg_config('--libs', 'glib-2.0')
super().configure(builder)
@staticmethod
def _process_pkg_config(pcfile: str, line: str) -> str:
if line.startswith('Version:'):