diff options
author | Ludovic Courtès <ludo@gnu.org> | 2012-10-18 12:13:07 +0200 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2012-10-18 12:13:07 +0200 |
commit | 223b285776bb0dd1bcaa6199aead775029dbb35d (patch) | |
tree | 6c3261d73e286c17bea5dd465f76e0c8967935c4 /pkgs/development/libraries/cairo | |
parent | fa7f30bf5e0a9f9518cb5db699fae4cda921b4da (diff) |
cairo: clear all occurrences of `-ldl' on FreeBSD
Diffstat (limited to 'pkgs/development/libraries/cairo')
-rw-r--r-- | pkgs/development/libraries/cairo/default.nix | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/pkgs/development/libraries/cairo/default.nix b/pkgs/development/libraries/cairo/default.nix index 4753a39ed76bf..b24cc668bf13c 100644 --- a/pkgs/development/libraries/cairo/default.nix +++ b/pkgs/development/libraries/cairo/default.nix @@ -47,8 +47,11 @@ stdenv.mkDerivation rec { # On FreeBSD, `-ldl' doesn't exist. + (stdenv.lib.optionalString stdenv.isFreeBSD - '' cat util/cairo-fdr/Makefile.in | sed -es/-ldl//g > t - mv t util/cairo-fdr/Makefile.in + '' for i in "util/"*"/Makefile.in" boilerplate/Makefile.in + do + cat "$i" | sed -es/-ldl//g > t + mv t "$i" + done ''); enableParallelBuilding = true; |