libiconv, ncurses: Add optional flags for minimal android variant
This commit is contained in:
parent
2482e2858e
commit
3a672cb7d2
@ -1,5 +1,6 @@
|
|||||||
{ fetchurl, stdenv, lib
|
{ fetchurl, stdenv, lib
|
||||||
, buildPlatform, hostPlatform
|
, buildPlatform, hostPlatform
|
||||||
|
, enableStatic ? stdenv.hostPlatform.useAndroidPrebuilt
|
||||||
}:
|
}:
|
||||||
|
|
||||||
# assert !stdenv.isLinux || hostPlatform != buildPlatform; # TODO: improve on cross
|
# assert !stdenv.isLinux || hostPlatform != buildPlatform; # TODO: improve on cross
|
||||||
@ -19,8 +20,8 @@ stdenv.mkDerivation rec {
|
|||||||
sed '/^_GL_WARN_ON_USE (gets/d' -i srclib/stdio.in.h
|
sed '/^_GL_WARN_ON_USE (gets/d' -i srclib/stdio.in.h
|
||||||
'';
|
'';
|
||||||
|
|
||||||
configureFlags =
|
configureFlags = lib.optional stdenv.isFreeBSD "--with-pic"
|
||||||
lib.optional stdenv.isFreeBSD "--with-pic";
|
++ lib.optional enableStatic "--enable-static";
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
description = "An iconv(3) implementation";
|
description = "An iconv(3) implementation";
|
||||||
|
@ -3,6 +3,8 @@
|
|||||||
, abiVersion
|
, abiVersion
|
||||||
, mouseSupport ? false
|
, mouseSupport ? false
|
||||||
, unicode ? true
|
, unicode ? true
|
||||||
|
, enableStatic ? stdenv.hostPlatform.useAndroidPrebuilt
|
||||||
|
, withCxx ? !stdenv.hostPlatform.useAndroidPrebuilt
|
||||||
|
|
||||||
, gpm
|
, gpm
|
||||||
|
|
||||||
@ -36,6 +38,8 @@ stdenv.mkDerivation rec {
|
|||||||
"--enable-pc-files"
|
"--enable-pc-files"
|
||||||
"--enable-symlinks"
|
"--enable-symlinks"
|
||||||
] ++ lib.optional unicode "--enable-widec"
|
] ++ lib.optional unicode "--enable-widec"
|
||||||
|
++ lib.optional enableStatic "--enable-static"
|
||||||
|
++ lib.optional (!withCxx) "--without-cxx"
|
||||||
++ lib.optional (abiVersion == "5") "--with-abi-version=5";
|
++ lib.optional (abiVersion == "5") "--with-abi-version=5";
|
||||||
|
|
||||||
# Only the C compiler, and explicitly not C++ compiler needs this flag on solaris:
|
# Only the C compiler, and explicitly not C++ compiler needs this flag on solaris:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user