diff options
author | Florian Friesdorf <flo@chaoflow.net> | 2015-05-26 15:18:49 +0200 |
---|---|---|
committer | Rok Garbas <rok@garbas.si> | 2015-05-28 10:53:34 +0200 |
commit | 88e58a4fa208a967c4e4bde5beda86e44eca9c12 (patch) | |
tree | 49b986667f136d4f49cafb888bad6f04a5b78965 /pkgs/stdenv/native | |
parent | d2e364c6781359a0fd6ea66b041d37e061b01cef (diff) |
cygwin: stdenv
Diffstat (limited to 'pkgs/stdenv/native')
-rw-r--r-- | pkgs/stdenv/native/default.nix | 23 |
1 files changed, 18 insertions, 5 deletions
diff --git a/pkgs/stdenv/native/default.nix b/pkgs/stdenv/native/default.nix index 935af7d4c36b..5390907928de 100644 --- a/pkgs/stdenv/native/default.nix +++ b/pkgs/stdenv/native/default.nix @@ -52,16 +52,22 @@ rec { shopt -s expand_aliases ''; + # prevent libtool from failing to find dynamic libraries prehookCygwin = '' ${prehookBase} - if test -z "$cygwinConfigureEnableShared"; then - export configureFlags="$configureFlags --disable-shared" - fi - - PATH_DELIMITER=';' + shopt -s expand_aliases + export lt_cv_deplibs_check_method=pass_all ''; + extraBuildInputsCygwin = [ + ../cygwin/all-buildinputs-as-runtimedep.sh + ../cygwin/wrap-exes-to-find-dlls.sh + ] ++ (if system == "i686-cygwin" then [ + ../cygwin/rebase-i686.sh + ] else if system == "x86_64-cygwin" then [ + ../cygwin/rebase-x86_64.sh + ] else []); # A function that builds a "native" stdenv (one that uses tools in # /usr etc.). @@ -74,8 +80,15 @@ rec { if system == "x86_64-freebsd" then prehookFreeBSD else if system == "i686-openbsd" then prehookOpenBSD else if system == "i686-netbsd" then prehookNetBSD else + if system == "i686-cygwin" then prehookCygwin else + if system == "x86_64-cygwin" then prehookCygwin else prehookBase; + extraBuildInputs = + if system == "i686-cygwin" then extraBuildInputsCygwin else + if system == "x86_64-cygwin" then extraBuildInputsCygwin else + []; + initialPath = extraPath ++ path; fetchurlBoot = fetchurl; |