gpsd: Fix do_install taking ages
scons was called manually in do_install step with different parameters than in do_compile step, leading to a recompilation in do_install (but without -j4), leading it to take very long. BugzID: 62046
This commit is contained in:
parent
4c87031b2b
commit
af1e36b559
|
|
@ -35,6 +35,7 @@ EXTRA_OESCONS = " \
|
|||
libdir='${libdir}' \
|
||||
manbuild='false' \
|
||||
${PACKAGECONFIG_CONFARGS} \
|
||||
python_libdir=${libdir} \
|
||||
"
|
||||
# this cannot be used, because then chrpath is not found and only static lib is built
|
||||
# target=${HOST_SYS}
|
||||
|
|
@ -46,16 +47,13 @@ do_compile_prepend() {
|
|||
export LINKFLAGS="${LDFLAGS}"
|
||||
}
|
||||
|
||||
do_install() {
|
||||
do_install_prepend() {
|
||||
export PKG_CONFIG_PATH="${PKG_CONFIG_PATH}"
|
||||
export PKG_CONFIG="PKG_CONFIG_SYSROOT_DIR=\"${PKG_CONFIG_SYSROOT_DIR}\" pkg-config"
|
||||
export STAGING_PREFIX="${STAGING_DIR_HOST}/${prefix}"
|
||||
export LINKFLAGS="${LDFLAGS}"
|
||||
|
||||
export DESTDIR="${D}"
|
||||
# prefix is used for RPATH and DESTDIR/prefix for instalation
|
||||
${STAGING_BINDIR_NATIVE}/scons prefix=${prefix} python_libdir=${libdir} install ${EXTRA_OESCONS} || \
|
||||
bbfatal "scons install execution failed."
|
||||
}
|
||||
|
||||
do_install_append() {
|
||||
|
|
|
|||
Loading…
Reference in New Issue