FS#15266 - [readline] Moving static version to /usr/lib like in 5.0
Attached to Project:
Arch Linux
Opened by Gerardo Exequiel Pozzi (djgera) - Friday, 26 June 2009, 00:40 GMT
Last edited by Andreas Radke (AndyRTR) - Sunday, 26 July 2009, 18:54 GMT
Opened by Gerardo Exequiel Pozzi (djgera) - Friday, 26 June 2009, 00:40 GMT
Last edited by Andreas Radke (AndyRTR) - Sunday, 26 July 2009, 18:54 GMT
|
Details
Description: OK, there is no rule about this in Arch Linux.
But is a good idea to keep static libs under /usr/lib
instead of /lib. Acording to FHS recomendations /lib is only
for shared libs.
# ls -lh /lib/libreadline.a /lib/libhistory.a -rw-r--r-- 1 root root 34K 2009-06-12 18:02 /lib/libhistory.a -rw-r--r-- 1 root root 290K 2009-06-12 18:02 /lib/libreadline.a In the previous version the static libraries was is /usr/lib Additional info: readline-6.0.00-1 |
This task depends upon
shared libs that are on /lib and also provides a static version in
/usr/lib must have a symlink in /usr/lib/ that points to shared lib in /lib
Trivial example:
# gcc foo.c -o foo -lreadline
# readelf -d foo | grep readline
# ln -s ../../lib/libreadline.so /usr/lib/libreadline.so
# gcc foo.c -o foo -lreadline
# readelf -d foo | grep readline
0x00000001 (NEEDED) Shared library: [libreadline.so.6]
[#1] http://www.archlinux.org/pipermail/arch-general/2009-July/006611.html
ln -s ../../lib/libhistory.so $pkgdir/usr/lib/libhistory.so
ln -s ../../lib/libreadline.so $pkgdir/usr/lib/libreadline.so