summary refs log tree commit diff
path: root/pkgs/tools/networking/curl
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2014-10-29 12:06:27 +0100
committerEelco Dolstra <eelco.dolstra@logicblox.com>2014-10-29 13:43:00 +0100
commitdc0d68ffc30d2b446f416eff4ed974eeafcf8224 (patch)
tree6d6d29e33f73ad345c8bd61f70faf1d09c6c5ea3 /pkgs/tools/networking/curl
parentd135422009991d9fb7602892abf77dcdb1e42cad (diff)
downloadnixlib-dc0d68ffc30d2b446f416eff4ed974eeafcf8224.tar
nixlib-dc0d68ffc30d2b446f416eff4ed974eeafcf8224.tar.gz
nixlib-dc0d68ffc30d2b446f416eff4ed974eeafcf8224.tar.bz2
nixlib-dc0d68ffc30d2b446f416eff4ed974eeafcf8224.tar.lz
nixlib-dc0d68ffc30d2b446f416eff4ed974eeafcf8224.tar.xz
nixlib-dc0d68ffc30d2b446f416eff4ed974eeafcf8224.tar.zst
nixlib-dc0d68ffc30d2b446f416eff4ed974eeafcf8224.zip
curl: Remove static link support
We only needed this for the stdenv bootstrap, but not anymore.
Diffstat (limited to 'pkgs/tools/networking/curl')
-rw-r--r--pkgs/tools/networking/curl/default.nix16
1 files changed, 2 insertions, 14 deletions
diff --git a/pkgs/tools/networking/curl/default.nix b/pkgs/tools/networking/curl/default.nix
index 6766415c8b11..883d21e4da11 100644
--- a/pkgs/tools/networking/curl/default.nix
+++ b/pkgs/tools/networking/curl/default.nix
@@ -4,7 +4,6 @@
 , scpSupport ? false, libssh2 ? null
 , gssSupport ? false, gss ? null
 , c-aresSupport ? false, c-ares ? null
-, linkStatic ? false
 }:
 
 assert zlibSupport -> zlib != null;
@@ -41,29 +40,18 @@ stdenv.mkDerivation rec {
       ( if scpSupport then "--with-libssh2=${libssh2}" else "--without-libssh2" )
     ]
     ++ stdenv.lib.optional c-aresSupport "--enable-ares=${c-ares}"
-    ++ stdenv.lib.optional gssSupport "--with-gssapi=${gss}"
-    ++ stdenv.lib.optionals linkStatic [ "--enable-static" "--disable-shared" ]
-  ;
+    ++ stdenv.lib.optional gssSupport "--with-gssapi=${gss}";
 
-  dontDisableStatic = linkStatic;
-
-  LDFLAGS = if linkStatic then "-static" else "";
   CXX = "g++";
   CXXCPP = "g++ -E";
 
-  # libtool hack to get a static binary. Notice that to 'configure' I passed
-  # other LDFLAGS, because it doesn't use libtool for linking in the tests.
-  makeFlags = if linkStatic then "LDFLAGS=-all-static" else "";
-
   crossAttrs = {
     # We should refer to the cross built openssl
     # For the 'urandom', maybe it should be a cross-system option
     configureFlags = [
         ( if sslSupport then "--with-ssl=${openssl.crossDrv}" else "--without-ssl" )
         "--with-random /dev/urandom"
-      ]
-      ++ stdenv.lib.optionals linkStatic [ "--enable-static" "--disable-shared" ]
-    ;
+      ];
   };
 
   passthru = {