cygwin: libatomic_ops: add missing interlibrary dep

This commit is contained in:
Marko Durkovic 2014-10-23 22:46:09 +02:00 committed by Rok Garbas
parent c4efe32d4d
commit e45745f1f4

View File

@ -1,4 +1,4 @@
{stdenv, fetchurl}: { stdenv, fetchurl, autoconf, automake, libtool }:
let let
s = # Generated upstream information s = # Generated upstream information
rec { rec {
@ -9,15 +9,22 @@ let
url="http://www.ivmaisoft.com/_bin/atomic_ops/libatomic_ops-7.4.2.tar.gz"; url="http://www.ivmaisoft.com/_bin/atomic_ops/libatomic_ops-7.4.2.tar.gz";
sha256="1pdm0h1y7bgkczr8byg20r6bq15m5072cqm5pny4f9crc9gn3yh4"; sha256="1pdm0h1y7bgkczr8byg20r6bq15m5072cqm5pny4f9crc9gn3yh4";
}; };
buildInputs = [
]; buildInputs = stdenv.lib.optionals stdenv.isCygwin [ autoconf automake libtool ];
in
stdenv.mkDerivation { in stdenv.mkDerivation {
inherit (s) name version; inherit (s) name version;
inherit buildInputs; inherit buildInputs;
src = fetchurl { src = fetchurl {
inherit (s) url sha256; inherit (s) url sha256;
}; };
preConfigure = if stdenv.isCygwin then ''
sed -i -e "/libatomic_ops_gpl_la_SOURCES/a libatomic_ops_gpl_la_LIBADD = libatomic_ops.la" src/Makefile.am
./autogen.sh
'' else null;
meta = { meta = {
inherit (s) version; inherit (s) version;
description = ''A library for semi-portable access to hardware-provided atomic memory update operations''; description = ''A library for semi-portable access to hardware-provided atomic memory update operations'';