mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-04-20 11:38:34 +00:00
cpufrequtils: Create proper symlinks to versioned library
Currently it produces duplicated .so files for .so.0 and .so.0.0.0 this is also noticed by opkg upgrade Configuring libxcb-randr0. /sbin/ldconfig: /usr/lib/libcpufreq.so.0 is not a symbolic link Additionally helps in some code size savings Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
This commit is contained in:
@@ -14,7 +14,7 @@ SRC_URI = "git://github.com/emagii/cpufrequtils.git \
|
||||
file://0001-dont-unset-cflags.patch \
|
||||
"
|
||||
|
||||
CFLAGS_append_libc-uclibc = " ${@['-DNLS', '-UNLS']['${USE_NLS}' == 'no']} "
|
||||
EXTRA_OEMAKE_append = " ${@['', 'NLS=false']['${USE_NLS}' == 'no']} "
|
||||
|
||||
PR = "r5"
|
||||
|
||||
@@ -30,5 +30,8 @@ do_compile() {
|
||||
|
||||
do_install() {
|
||||
oe_runmake -e install DESTDIR=${D}
|
||||
rm -f ${D}${libdir}/libcpufreq.so.0 ${D}${libdir}/libcpufreq.so
|
||||
ln -s libcpufreq.so.0.0.0 ${D}${libdir}/libcpufreq.so.0
|
||||
ln -s libcpufreq.so.0.0.0 ${D}${libdir}/libcpufreq.so
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user