mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 23:43:30 +00:00
libiconv: use enableFeature for static/shared
This makes things more predictable w.r.t. what is actually being built.
This commit is contained in:
parent
ea08cf9e6c
commit
f7138342cb
@ -29,9 +29,10 @@ stdenv.mkDerivation rec {
|
||||
sed -i -e '/preload/d' Makefile.in
|
||||
'';
|
||||
|
||||
configureFlags = lib.optional stdenv.isFreeBSD "--with-pic"
|
||||
++ lib.optional enableStatic "--enable-static"
|
||||
++ lib.optional (!enableShared) "--disable-shared";
|
||||
configureFlags = [
|
||||
(lib.enableFeature enableStatic "static")
|
||||
(lib.enableFeature enableShared "shared")
|
||||
] ++ lib.optional stdenv.isFreeBSD "--with-pic";
|
||||
|
||||
meta = {
|
||||
description = "An iconv(3) implementation";
|
||||
|
@ -10,8 +10,10 @@ appleDerivation {
|
||||
sed -i 's/darwin\*/ios\*/g' configure libcharset/configure
|
||||
'';
|
||||
|
||||
configureFlags = lib.optional enableStatic "--enable-static"
|
||||
++ lib.optional (!enableShared) "--disable-shared";
|
||||
configureFlags = [
|
||||
(lib.enableFeature enableStatic "static")
|
||||
(lib.enableFeature enableShared "shared")
|
||||
];
|
||||
|
||||
postInstall = lib.optionalString (!enableStatic) ''
|
||||
mv $out/lib/libiconv.dylib $out/lib/libiconv-nocharset.dylib
|
||||
|
Loading…
Reference in New Issue
Block a user