FreeBSD support

This commit is contained in:
janus
2016-01-01 16:59:48 +00:00
parent 35cf6c428f
commit a1ade02cdc
10 changed files with 39 additions and 9 deletions
@@ -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).