commit:     c9843a298647c9fd076a4fb54320cdf8a47466ae
Author:     David Seifert <soap <AT> gentoo <DOT> org>
AuthorDate: Sat Aug  8 16:54:17 2020 +0000
Commit:     David Seifert <soap <AT> gentoo <DOT> org>
CommitDate: Sat Aug  8 16:54:17 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c9843a29

media-libs/codec2: Fix building under -fno-common

Closes: https://bugs.gentoo.org/707668
Package-Manager: Portage-3.0.1, Repoman-2.3.23
Signed-off-by: David Seifert <soap <AT> gentoo.org>

 media-libs/codec2/codec2-0.8.1.ebuild                 |  5 ++++-
 media-libs/codec2/files/codec2-0.8.1-fno-common.patch | 11 +++++++++++
 2 files changed, 15 insertions(+), 1 deletion(-)

diff --git a/media-libs/codec2/codec2-0.8.1.ebuild 
b/media-libs/codec2/codec2-0.8.1.ebuild
index 50150b2cb65..8dbf9acea97 100644
--- a/media-libs/codec2/codec2-0.8.1.ebuild
+++ b/media-libs/codec2/codec2-0.8.1.ebuild
@@ -15,7 +15,10 @@ SLOT="0"
 KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ppc ppc64 ~sparc x86"
 IUSE="examples"
 
-PATCHES=( "${FILESDIR}/${P}-unused-deps.patch" )
+PATCHES=(
+       "${FILESDIR}"/${P}-unused-deps.patch
+       "${FILESDIR}"/${P}-fno-common.patch
+)
 
 multilib_src_configure() {
        local mycmakeargs=( -DUNITTEST=OFF )

diff --git a/media-libs/codec2/files/codec2-0.8.1-fno-common.patch 
b/media-libs/codec2/files/codec2-0.8.1-fno-common.patch
new file mode 100644
index 00000000000..d5818a01f5c
--- /dev/null
+++ b/media-libs/codec2/files/codec2-0.8.1-fno-common.patch
@@ -0,0 +1,11 @@
+--- a/src/codec2_ofdm.h
++++ b/src/codec2_ofdm.h
+@@ -51,7 +51,7 @@
+ struct OFDM;
+ 
+ /* Default configuration for '700D' mode */
+-const struct OFDM_CONFIG * OFDM_CONFIG_700D;
++extern const struct OFDM_CONFIG * OFDM_CONFIG_700D;
+ 
+ /* create and destroy modem states */
+ 

Reply via email to