Commit 31376482 authored by Natanael Copa's avatar Natanael Copa

abuild: move the .so symlinks to -dev packages

Those are needed when linking to the lib and not during runtime.

Having those in the -dev package makes it easier to allow different
versions of same libs to be installed side-by-side.
parent db2be5e5
...@@ -637,7 +637,7 @@ mod() { ...@@ -637,7 +637,7 @@ mod() {
# predefined splitfunc dev # predefined splitfunc dev
default_dev() { default_dev() {
local i local i= j=
depends="$pkgname $depends_dev" depends="$pkgname $depends_dev"
install="$install_dev" install="$install_dev"
triggers="$triggers_dev" triggers="$triggers_dev"
...@@ -658,6 +658,13 @@ default_dev() { ...@@ -658,6 +658,13 @@ default_dev() {
rmdir "$pkgdir/${i%/*}" 2>/dev/null rmdir "$pkgdir/${i%/*}" 2>/dev/null
fi fi
done done
# move *.so links needed when linking the apps to -dev packages
for i in lib/*.so usr/lib/*.so; do
if [ -L "$i" ]; then
mkdir -p "$subpkgdir"/"${i%/*}"
mv "$i" "$subpkgdir/$i" || return 1
fi
done
return 0 return 0
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment