mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 17:59:20 -04:00
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:
parent
97d3f59629
commit
c9fc278672
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=411399
1 changed files with 15 additions and 0 deletions
15
audio/fplib/files/patch-CMakeLists.txt
Normal file
15
audio/fplib/files/patch-CMakeLists.txt
Normal 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
|
Loading…
Add table
Reference in a new issue