Merge pull request #175366 from trofi/workaround-fno-common-for-transcode

transcode: add -fcommon workaround
This commit is contained in:
Sandro 2022-05-30 01:39:19 +02:00 committed by GitHub
commit 0f8df9eee8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -19,6 +19,12 @@ stdenv.mkDerivation rec {
enableParallelBuilding = true;
# Workaround build failure on -fno-common toolchains like upstream
# gcc-10. Otherwise build fails as:
# ld: tcextract-extract_pcm.o:/build/transcode-1.1.7/import/extract_pcm.c:36: multiple definition of
# `audio'; tcextract-extract_ac3.o:/build/transcode-1.1.7/import/extract_ac3.c:337: first defined here
NIX_CFLAGS_COMPILE = "-fcommon";
meta = with lib; {
description = "Suite of command line utilities for transcoding video and audio codecs, and for converting between different container formats";
homepage = "http://www.transcoding.org/";