about summary refs log tree commit diff
path: root/pkgs/development/libraries/libiconv/default.nix
diff options
context:
space:
mode:
authorjanus <janus@xn--kn-1ia.guru>2015-11-24 10:59:39 +0000
committerjanus <janus@xn--kn-1ia.guru>2016-01-01 16:59:48 +0000
commita1ade02cdc75a11013c49ad12c7bb4feeec0d080 (patch)
treef7969d9daf6d3e1aebabdf0c085d52a0a0996ca9 /pkgs/development/libraries/libiconv/default.nix
parent35cf6c428f05c522a4987d144c8bd5abe6b2f468 (diff)
FreeBSD support
Diffstat (limited to 'pkgs/development/libraries/libiconv/default.nix')
-rw-r--r--pkgs/development/libraries/libiconv/default.nix3
1 files changed, 2 insertions, 1 deletions
diff --git a/pkgs/development/libraries/libiconv/default.nix b/pkgs/development/libraries/libiconv/default.nix
index 70b0574a7b46a..24a0376f0f9f7 100644
--- a/pkgs/development/libraries/libiconv/default.nix
+++ b/pkgs/development/libraries/libiconv/default.nix
@@ -19,7 +19,8 @@ stdenv.mkDerivation rec {
   # (Windows' linker would need to be used somehow to produce an actual
   # DLL.)  Thus, build the static library too, and this is what Gettext
   # will actually use.
-  configureFlags = if stdenv.isCygwin then [ "--enable-static" ] else null;
+  configureFlags = if stdenv.isCygwin then [ "--enable-static" ] else
+                   if stdenv.isFreeBSD then [ "--with-pic" ] else null;
 
   crossAttrs = {
     # Disable stripping to avoid "libiconv.a: Archive has no index" (MinGW).