Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1This patch is to make sure that `libncurses' is among the `NEEDED' 2dependencies of `libreadline.so' and `libhistory.so'. 3 4Failing to do that, applications linking against Readline are 5forced to explicitly link against libncurses as well; in addition, 6this trick doesn't work when using GNU ld's `--as-needed'. 7 8--- shlib/Makefile.in 2009-01-06 18:03:22.000000000 +0100 9+++ shlib/Makefile.in 2009-07-27 14:43:25.000000000 +0200 10@@ -84,7 +84,7 @@ SHOBJ_LDFLAGS = @SHOBJ_LDFLAGS@ 11 SHOBJ_XLDFLAGS = @SHOBJ_XLDFLAGS@ 12 SHOBJ_LIBS = @SHOBJ_LIBS@ 13 14-SHLIB_XLDFLAGS = @LDFLAGS@ @SHLIB_XLDFLAGS@ 15+SHLIB_XLDFLAGS = @LDFLAGS@ @SHLIB_XLDFLAGS@ -lncurses 16 SHLIB_LIBS = @SHLIB_LIBS@ 17 18 SHLIB_DOT = @SHLIB_DOT@