openwrt/package
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 0000ba6ab8)
Link: https://github.com/openwrt/openwrt/pull/17097
Signed-off-by: Petr Štetiar <ynezz@true.cz>
2024-11-28 18:47:29 +00:00
..
base-files base-files: Mount debugfs and pstore with nosuid,nodev,noexec 2024-11-28 18:47:23 +00:00
boot uboot-envtools: add support for GatoNetworks GDSP 2024-11-28 18:47:11 +00:00
devel gdb: Remove MIPS NSIG patch 2024-10-12 21:51:25 +02:00
firmware linux-firmware: rename packages for i915 firmware 2024-11-28 18:47:17 +00:00
kernel x86: make i915 as a kmod with required firmware 2024-11-28 18:47:19 +00:00
libs libreadlne: create symlinks for .so 2024-11-28 18:47:29 +00:00
network ppp: remove more unnecessary kernel checks 2024-11-28 18:47:25 +00:00
system procd: update to git HEAD 2024-11-26 12:23:06 +00:00
utils utils: Add the omnia-eeprom utility 2024-11-28 18:47:15 +00:00
Makefile build: don't include kernel/libc in package index 2024-10-30 14:17:33 +01:00