Add a patch to explicitly link against libfplib.so.

What the port was doing was never right, but the upcoming CMake 3.5.0 makes the
build failures happen more often.

Using target_link_libraries() with a name like fplib will just pass -lfplib to
the linker instead of declaring a dependency between the lastfm-fpclient and
fplib_shared targets and parallel builds may break.

PR:		208033
This commit is contained in:
Raphael Kubo da Costa 2016-03-19 14:18:40 +00:00
parent 97d3f59629
commit c9fc278672
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=411399

View file

@ -0,0 +1,15 @@
Link against an actual target name, not the generated library name.
If we link against the latter, there is no dependency between lastfm-fpclient
and fplib, which can break parallel builds starting with CMake 3.5.0.
--- CMakeLists.txt.orig 2016-03-16 09:53:03 UTC
+++ CMakeLists.txt
@@ -139,7 +139,7 @@ ADD_EXECUTABLE(lastfm-fpclient
# Link the executable
TARGET_LINK_LIBRARIES(lastfm-fpclient
- fplib
+ fplib_shared
fftw3f
mad
tag