Skip to content

Commit

Permalink
media-libs/codec2: Fix building under -fno-common
Browse files Browse the repository at this point in the history
Closes: https://bugs.gentoo.org/707668
Package-Manager: Portage-3.0.1, Repoman-2.3.23
Signed-off-by: David Seifert <[email protected]>
  • Loading branch information
SoapGentoo committed Aug 8, 2020
1 parent 814404d commit c9843a2
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
5 changes: 4 additions & 1 deletion media-libs/codec2/codec2-0.8.1.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -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 )
Expand Down
11 changes: 11 additions & 0 deletions media-libs/codec2/files/codec2-0.8.1-fno-common.patch
Original file line number Diff line number Diff line change
@@ -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 */

0 comments on commit c9843a2

Please sign in to comment.