Merge pull request #176457 from trofi/workaround-fno-common-for-speech-tools

speech-tools: add -fcommon workaround
This commit is contained in:
Anderson Torres 2022-06-05 21:27:10 -03:00 committed by GitHub
commit 29810947f6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -11,6 +11,11 @@ stdenv.mkDerivation rec {
buildInputs = [ alsa-lib ncurses ];
# Workaround build failure on -fno-common toolchains:
# ld: libestools.a(editline.o):(.bss+0x28): multiple definition of
# `editline_history_file'; libestools.a(siodeditline.o):(.data.rel.local+0x8): first defined here
NIX_CFLAGS_COMPILE = "-fcommon";
preConfigure = ''
sed -e s@/usr/bin/@@g -i $( grep -rl '/usr/bin/' . )
sed -re 's@/bin/(rm|printf|uname)@\1@g' -i $( grep -rl '/bin/' . )