-
Notifications
You must be signed in to change notification settings - Fork 296
Labels
Description
FluidSynth version
2.4.8
Describe the bug
The FluidSynth Windows MinGW package only contains versioned libraries.
It's not possible to link as -lfluidsynth
, only as -lfluidsynth-2
.
See the contents of the msys2 MinGW64 package:
/mingw64/bin/libfluidsynth-3.dll
/mingw64/lib/libfluidsynth-3.a
/mingw64/lib/libfluidsynth-3.dll.a
Expected behavior
FluidSynth should build a versioned libfluidsynth-3.dll
binary,
and unversioned link libraries: libfluidsynth.a
and libfuildsynth.dll.a
This issue was introduced in #1546
I think this should fix it:
- ARCHIVE_OUTPUT_NAME "fluidsynth-${LIB_VERSION_CURRENT}"
+ ARCHIVE_OUTPUT_NAME "fluidsynth"
MinGW should have these files:
/mingw64/bin/libfluidsynth-3.dll
/mingw64/lib/libfluidsynth.a
/mingw64/lib/libfluidsynth.dll.a
Steps to reproduce
Build FluidSynth using MinGW toolchain, and try to link to fluidsynth using -lfluidsynth
Additional context
No response