diff options
author | Miroslav Šulc <fordfrog@gentoo.org> | 2020-09-03 10:54:16 +0200 |
---|---|---|
committer | Miroslav Šulc <fordfrog@gentoo.org> | 2020-09-03 10:54:48 +0200 |
commit | 2ff6692048fcc3f4df1561265078788cd8f59f57 (patch) | |
tree | c1fdac2cba2e8d9ceb4f839d3cf0505082ed39d1 /media-plugins/cmt-plugins | |
parent | net-im/gajim: Remove obsolete versions. (diff) | |
download | gentoo-2ff6692048fcc3f4df1561265078788cd8f59f57.tar.gz gentoo-2ff6692048fcc3f4df1561265078788cd8f59f57.tar.bz2 gentoo-2ff6692048fcc3f4df1561265078788cd8f59f57.zip |
media-plugins/cmt-plugins: fixed clang compilation + linking in 1.17-r1
Closes: https://bugs.gentoo.org/740170
Package-Manager: Portage-3.0.5, Repoman-3.0.1
Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
Diffstat (limited to 'media-plugins/cmt-plugins')
3 files changed, 15 insertions, 1 deletions
diff --git a/media-plugins/cmt-plugins/cmt-plugins-1.17-r1.ebuild b/media-plugins/cmt-plugins/cmt-plugins-1.17-r1.ebuild index 9ef01406f196..f38bf2a8d5a3 100644 --- a/media-plugins/cmt-plugins/cmt-plugins-1.17-r1.ebuild +++ b/media-plugins/cmt-plugins/cmt-plugins-1.17-r1.ebuild @@ -22,6 +22,7 @@ RDEPEND="" PATCHES=( "${FILESDIR}/${P}-makefile.patch" + "${FILESDIR}/${P}-clang.patch" ) DOCS="../README" diff --git a/media-plugins/cmt-plugins/files/cmt-plugins-1.17-clang.patch b/media-plugins/cmt-plugins/files/cmt-plugins-1.17-clang.patch new file mode 100644 index 000000000000..621816beaf5f --- /dev/null +++ b/media-plugins/cmt-plugins/files/cmt-plugins-1.17-clang.patch @@ -0,0 +1,13 @@ +diff --git a/src/disintegrator.cpp b/src/disintegrator.cpp +index 867fe37..7563a5d 100644 +--- a/src/disintegrator.cpp ++++ b/src/disintegrator.cpp +@@ -67,7 +67,7 @@ namespace disintegrator { + }; + + template<OutputFunction write_output> +- static void run(LADSPA_Handle instance, ++ void run(LADSPA_Handle instance, + unsigned long sample_count) { + + Plugin *pp = (Plugin *) instance; diff --git a/media-plugins/cmt-plugins/files/cmt-plugins-1.17-makefile.patch b/media-plugins/cmt-plugins/files/cmt-plugins-1.17-makefile.patch index ca76e859b5f7..93f3ab5df99c 100644 --- a/media-plugins/cmt-plugins/files/cmt-plugins-1.17-makefile.patch +++ b/media-plugins/cmt-plugins/files/cmt-plugins-1.17-makefile.patch @@ -16,7 +16,7 @@ index 159dd46..5c2c0f4 100644 plugin: $(PLUGIN_LIB) +%.o: %.cpp -+ $(CXX) $(INCLUDES) $(CFLAGS) -c -o $*.o $*.cpp ++ $(CXX) $(INCLUDES) $(CFLAGS) -fPIC -c -o $*.o $*.cpp + + targets: $(PLUGIN_LIB) |