Jeronimo Pellegrini 994a95584a
libreadlne: create symlinks for .so
Currently, libreadline only installs

```
 /usr/lib/libhistory.so.8 -> libhistory.so.8.2
 /usr/lib/libhistory.so.8.2
 /usr/lib/libreadline.so.8 -> libreadline.so.8.2
 /usr/lib/libreadline.so.8.2
```

But there is no `libreadline.so` or `libhistory.so` available.

So this happens:

```
root@OpenWRT:~# cat a.c
int main() {
}
root@OpenWRT:~# gcc a.c -lreadline
/usr/bin/ld: cannot find -lreadline: No such file or directory
collect2: error: ld returned 1 exit status
```

Unless, of course, one uses `-l:libreadline.so.8`... But that
doesn't help with binaries that try to dynamically open

`libreadline.so`. I have one of those here (the STklos Scheme
compiler -- I didn't make a PR for it because it's far from
being ready, but one issue is that it does use dlopen to use
readline...)

With the symlink, it works:

```
root@OpenWRT:~# ln -s /usr/lib/libreadline.so.8 /usr/lib/libreadline.so
root@OpenWRT:~#
root@OpenWRT:~# gcc a.c -lreadline
root@OpenWRT:~#
```

Another example: when trying to package rlwrap, the build failed
complaining it could not find readline (using `-lreadline`).
It would then be necessary to change rlwrap's `configure.ac`
(and also in all packages that use readline), but it seems
simpler to add the symlinks...

This PR changes the Makefile so it will include the links.

Signed-off-by: Jeronimo Pellegrini <j_p@aleph0.info>
Link: https://github.com/openwrt/openwrt/pull/16445
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
(cherry picked from commit 0000ba6ab8062f965d8fed240b76d36f9a493b55)
Link: https://github.com/openwrt/openwrt/pull/17097
Signed-off-by: Petr Štetiar <ynezz@true.cz>
2024-11-28 18:47:29 +00:00
..
2023-10-17 11:05:16 +02:00
2024-10-13 22:29:11 +03:00
2024-01-30 10:39:21 +01:00
2023-05-22 18:51:31 +02:00
2024-10-05 12:29:20 +02:00
2023-10-12 09:50:25 +02:00
2022-09-06 16:36:44 +01:00
2022-09-06 16:36:45 +01:00
2024-11-16 00:11:27 +01:00
2024-10-05 12:33:38 +02:00
2024-09-22 17:41:32 +02:00
2023-10-29 19:42:32 +01:00
2022-07-10 19:07:47 +02:00
2024-01-25 17:31:50 +01:00
2024-08-07 18:05:32 +02:00
2024-09-22 18:20:44 +02:00
2024-10-05 12:31:43 +02:00
2024-10-24 20:17:27 +02:00
2024-01-04 22:40:05 +01:00
2024-07-28 19:30:35 +02:00
2023-07-19 15:25:35 +02:00
2024-09-25 23:30:22 +02:00
2024-04-27 12:05:43 +02:00
2023-09-25 23:06:33 +02:00
2024-07-15 23:57:44 +02:00
2024-02-02 17:26:29 +01:00