Skip to content

Commit

Permalink
lame: prevent build failure from using outdated symbol list
Browse files Browse the repository at this point in the history
Before this change, trying to build LAME on Darwin would throw an error:

Undefined symbols for architecture x86_64:
  "_lame_init_old", referenced from:
     -exported_symbol[s_list] command line option
ld: symbol(s) not found for architecture x86_64
clang-4.0: error: linker command failed with exit code 1 (use -v to see invocation)

(cherry picked from commit e82dc08)
  • Loading branch information
eqyiel authored and LnL7 committed Nov 4, 2017
1 parent 1a6a7b0 commit 1a8a95e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pkgs/development/libraries/lame/default.nix
Expand Up @@ -55,6 +55,12 @@ stdenv.mkDerivation rec {
(if debugSupport then "--enable-debug=alot" else "")
];

preConfigure = ''
# Prevent a build failure for 3.100 due to using outdated symbol list
# https://hydrogenaud.io/index.php/topic,114777.msg946373.html#msg946373
sed -i '/lame_init_old/d' include/libmp3lame.sym
'';

meta = {
description = "A high quality MPEG Audio Layer III (MP3) encoder";
homepage = http://lame.sourceforge.net;
Expand Down

0 comments on commit 1a8a95e

Please sign in to comment.