diff options
author | Patrick Mahoney <pat@polycrystal.org> | 2016-04-01 10:20:13 -0500 |
---|---|---|
committer | Patrick Mahoney <pat@polycrystal.org> | 2016-04-01 10:39:37 -0500 |
commit | fc1f5d2cf1a4febaa7843284554fd7397c8988bc (patch) | |
tree | 1c4243d174d8710685ed744e385d87d9e3b8e06f /pkgs/tools/system/s6-rc | |
parent | e0c225857ffef4142f2478e7d3bda42b92446a8e (diff) | |
download | nixlib-fc1f5d2cf1a4febaa7843284554fd7397c8988bc.tar nixlib-fc1f5d2cf1a4febaa7843284554fd7397c8988bc.tar.gz nixlib-fc1f5d2cf1a4febaa7843284554fd7397c8988bc.tar.bz2 nixlib-fc1f5d2cf1a4febaa7843284554fd7397c8988bc.tar.lz nixlib-fc1f5d2cf1a4febaa7843284554fd7397c8988bc.tar.xz nixlib-fc1f5d2cf1a4febaa7843284554fd7397c8988bc.tar.zst nixlib-fc1f5d2cf1a4febaa7843284554fd7397c8988bc.zip |
set target for darwin binary compat in skarnet.org packages
skalibs: execline: s6-dns: s6-networking: s6-portable-utils: s6-rc: s6: The above software uses the target triplet from `cc -dumpmachine` as a binary compatibility check. However, on darwin, the output includes the darwin version number, which leads to build failures against a binary skalibs package built a different version of darwin than the current system. Explicitly setting target ensures code can be compiled against a skalibs binary built on a different version of darwin. See http://www.skarnet.org/cgi-bin/archive.cgi?1:mss:623:heiodchokfjdkonfhdph
Diffstat (limited to 'pkgs/tools/system/s6-rc')
-rw-r--r-- | pkgs/tools/system/s6-rc/default.nix | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/pkgs/tools/system/s6-rc/default.nix b/pkgs/tools/system/s6-rc/default.nix index c86cd7a2f520..35763e8212e3 100644 --- a/pkgs/tools/system/s6-rc/default.nix +++ b/pkgs/tools/system/s6-rc/default.nix @@ -29,7 +29,9 @@ in stdenv.mkDerivation rec { "--with-dynlib=${skalibs}/lib" "--with-dynlib=${execline}/lib" "--with-dynlib=${s6}/lib" - ] ++ [ (if stdenv.isDarwin then "--disable-shared" else "--enable-shared") ]; + ] + ++ (if stdenv.isDarwin then [ "--disable-shared" ] else [ "--enable-shared" ]) + ++ (stdenv.lib.optional stdenv.isDarwin "--target=${stdenv.system}"); meta = { homepage = http://skarnet.org/software/s6-rc/; |