From 7c34a897aa26fba242d1a749dec784631a925123 Mon Sep 17 00:00:00 2001 From: Victor Shcherb Date: Mon, 23 Jul 2018 21:34:59 +0200 Subject: [PATCH] udpate default version --- OsmAnd-java/collect_legacy_libs.sh | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/OsmAnd-java/collect_legacy_libs.sh b/OsmAnd-java/collect_legacy_libs.sh index 54172a2cd9..d631630d7d 100755 --- a/OsmAnd-java/collect_legacy_libs.sh +++ b/OsmAnd-java/collect_legacy_libs.sh @@ -21,12 +21,15 @@ function copyLibs { function compile { "$CORE_LOC/externals/configure.sh" - if [ ! -d "$CORE_LOC/targets/amd64-linux-gcc-amd64-linux-gcc-release.baked" ]; then - "$CORE_LOC/targets/amd64-linux-gcc.sh" release + ARCH=$1 + if [ ! -d "$CORE_LOC/targets/$ARCH-linux-gcc-$ARCH-linux-gcc-release.baked" ]; then + "$CORE_LOC/targets/$ARCH-linux-gcc.sh" release fi - (cd "$CORE_LOC/targets/amd64-linux-gcc-amd64-linux-gcc-release.baked" && make -j$OSMAND_BUILD_CPU_CORES_NUM) + (cd "$CORE_LOC/targets/$ARCH-linux-gcc-$ARCH-linux-gcc-release.baked" && make -j$OSMAND_BUILD_CPU_CORES_NUM) + } -compile +compile amd64 +compile i686 copyLibs linux amd64 amd64 so copyLibs linux i686 x86 so