mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-24 11:16:51 +00:00
libretro-fsuae: add host build for gen target as designed
The host utils are meant to be build on the host (using the host libaries.) This fixes the error when the glibc libraries are older on the build host, than the target. ./gen/build68k < ./src/table68k > ./gen/cpudefs.c ./gen/build68k: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.34' not found (required by ./gen/build68k) make[1]: *** [Makefile:2011: gen/cpudefs.c] Error 1
This commit is contained in:
parent
4414c8248c
commit
bbc9846755
@ -8,7 +8,8 @@ PKG_ARCH="x86_64"
|
||||
PKG_LICENSE="GPLv3"
|
||||
PKG_SITE="https://github.com/libretro/libretro-fsuae"
|
||||
PKG_URL="https://github.com/libretro/libretro-fsuae/archive/${PKG_VERSION}.tar.gz"
|
||||
PKG_DEPENDS_TARGET="toolchain glib libmpeg2 openal-soft libpng"
|
||||
PKG_DEPENDS_HOST="libmpeg2:host"
|
||||
PKG_DEPENDS_TARGET="toolchain glib libmpeg2 openal-soft libpng libretro-fsuae:host"
|
||||
PKG_LONGDESC="FS-UAE amiga emulator."
|
||||
PKG_BUILD_FLAGS="-lto"
|
||||
PKG_TOOLCHAIN="autotools"
|
||||
@ -21,6 +22,22 @@ if [ "${TARGET_ARCH}" = "arm" ] && target_has_feature neon; then
|
||||
PKG_CONFIGURE_OPTS_TARGET="--disable-jit --enable-neon"
|
||||
fi
|
||||
|
||||
pre_configure_host() {
|
||||
cd ${PKG_BUILD}
|
||||
rm -rf .${HOST_NAME}
|
||||
# check if this flag is still needed when this package is updated
|
||||
export CFLAGS="${CFLAGS} -fcommon"
|
||||
export ac_cv_func_realloc_0_nonnull=yes
|
||||
}
|
||||
|
||||
make_host() {
|
||||
make -j1 CC="${CC}" gen
|
||||
}
|
||||
|
||||
makeinstall_host() {
|
||||
:
|
||||
}
|
||||
|
||||
pre_configure_target() {
|
||||
cd ${PKG_BUILD}
|
||||
rm -rf .${TARGET_NAME}
|
||||
@ -30,7 +47,6 @@ pre_configure_target() {
|
||||
}
|
||||
|
||||
make_target() {
|
||||
make -j1 CC="${CC}" gen
|
||||
make CC="${CC}"
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user