| 1 | This patch is to make sure that `libncurses' is among the `NEEDED'
|
| 2 | dependencies of `libreadline.so' and `libhistory.so'.
|
| 3 |
|
| 4 | Failing to do that, applications linking against Readline are
|
| 5 | forced to explicitly link against libncurses as well; in addition,
|
| 6 | this trick doesn't work when using GNU ld's `--as-needed'.
|
| 7 |
|
| 8 | |
| 9 | |
| 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@
|