libical: force link with libical.so in g-ir-scanner

Force $LD loads all required shared objects instead of relying on
dependency chain.

Avoid hacky stuff for g-ir-scanner when cross building.
This commit is contained in:
Đoàn Trần Công Danh 2020-07-06 21:44:39 +07:00
parent b6ef2e3c0f
commit d37825d43a

View file

@ -21,12 +21,11 @@ disable_parallel_build=yes
build_options="gir"
build_options_default="gir"
post_configure() {
if [ "$CROSS_BUILD" ]; then
# QEMU_SET_ENV=LD_LIBRARY_PATH=/builddir/libical-3.0.8/build/lib
# in pre_build doesn't work??
ln -sf ../../lib/libical.so.3 build/src/libical-glib
fi
pre_build() {
# export GIR_EXTRA_LIBS_PATH=$wrksrc/build/lib
# export LD_LIBRARY_PATH=$wrksrc/build/lib
# export QEMU_SET_ENV=LD_LIBRARY_PATH=$wrksrc/build/lib
export LDFLAGS="$LDFLAGS -lical"
}
libical-devel_package() {