Skip to content

Commit

Permalink
ncurses: make shared linking optinoal
Browse files Browse the repository at this point in the history
when enableShared = false, we set --without-shared flag.
  • Loading branch information
matthewbauer committed Dec 5, 2018
1 parent e999def commit 53a6789
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkgs/development/libraries/ncurses/default.nix
Expand Up @@ -4,6 +4,7 @@
, mouseSupport ? false
, unicode ? true
, enableStatic ? stdenv.hostPlatform.useAndroidPrebuilt
, enableShared ? !enableStatic
, withCxx ? !stdenv.hostPlatform.useAndroidPrebuilt

, gpm
Expand All @@ -29,7 +30,7 @@ stdenv.mkDerivation rec {
setOutputFlags = false; # some aren't supported

configureFlags = [
"--with-shared"
(lib.withFeature enableShared "shared")
"--without-debug"
"--enable-pc-files"
"--enable-symlinks"
Expand Down

0 comments on commit 53a6789

Please sign in to comment.