summary refs log tree commit diff
path: root/pkgs/development/libraries/libmpeg2
diff options
context:
space:
mode:
authorSpencer Whitt <sw@swhitt.me>2015-03-05 15:47:40 -0500
committerSpencer Whitt <sw@swhitt.me>2015-03-25 23:12:14 -0400
commit54bf845153ccb226da13302d860f068cdf9f057c (patch)
treed6b8d107e2d9151bb8d354984c6c5da4a93c0d4f /pkgs/development/libraries/libmpeg2
parentf5eed7e14e45f639514d432b680325cae6d40b06 (diff)
downloadnixpkgs-54bf845153ccb226da13302d860f068cdf9f057c.tar
nixpkgs-54bf845153ccb226da13302d860f068cdf9f057c.tar.gz
nixpkgs-54bf845153ccb226da13302d860f068cdf9f057c.tar.bz2
nixpkgs-54bf845153ccb226da13302d860f068cdf9f057c.tar.lz
nixpkgs-54bf845153ccb226da13302d860f068cdf9f057c.tar.xz
nixpkgs-54bf845153ccb226da13302d860f068cdf9f057c.tar.zst
nixpkgs-54bf845153ccb226da13302d860f068cdf9f057c.zip
libmpeg2: Fix Darwin build
Diffstat (limited to 'pkgs/development/libraries/libmpeg2')
-rw-r--r--pkgs/development/libraries/libmpeg2/default.nix3
1 files changed, 3 insertions, 0 deletions
diff --git a/pkgs/development/libraries/libmpeg2/default.nix b/pkgs/development/libraries/libmpeg2/default.nix
index 7ecac071ce4..19d912e5523 100644
--- a/pkgs/development/libraries/libmpeg2/default.nix
+++ b/pkgs/development/libraries/libmpeg2/default.nix
@@ -9,6 +9,9 @@ stdenv.mkDerivation rec {
     sha256 = "1m3i322n2fwgrvbs1yck7g5md1dbg22bhq5xdqmjpz5m7j4jxqny";
   };
 
+  # Otherwise clang fails with 'duplicate symbol ___sputc'
+  buildFlags = stdenv.lib.optionalString stdenv.isDarwin "CFLAGS=-std=gnu89";
+
   meta = {
     homepage = http://libmpeg2.sourceforge.net/;
     description = "A free library for decoding mpeg-2 and mpeg-1 video streams";