Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
L
libzmq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
libzmq
Commits
b4abaad2
Commit
b4abaad2
authored
Jun 07, 2016
by
Luca Boccassi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Problem: Android CI uses outdated C++ ABI 4.8
Solution: switch to 4.9
parent
b872e7d9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
11 deletions
+11
-11
android_build_helper.sh
builds/android/android_build_helper.sh
+10
-10
build.sh
builds/android/build.sh
+1
-1
No files found.
builds/android/android_build_helper.sh
View file @
b4abaad2
...
...
@@ -80,12 +80,12 @@ function android_build_env {
if
[
-z
"
$TOOLCHAIN_PATH
"
]
;
then
ANDROID_BUILD_FAIL+
=(
"Please set the TOOLCHAIN_PATH environment variable"
)
ANDROID_BUILD_FAIL+
=(
" (eg.
\"
/home/user/android/android-ndk-r11c/toolchains/arm-linux-androideabi-4.
8
/prebuilt/linux-x86_64/bin
\"
)"
)
ANDROID_BUILD_FAIL+
=(
" (eg.
\"
/home/user/android/android-ndk-r11c/toolchains/arm-linux-androideabi-4.
9
/prebuilt/linux-x86_64/bin
\"
)"
)
fi
if
[
-z
"
$TOOLCHAIN_NAME
"
]
;
then
ANDROID_BUILD_FAIL+
=(
"Please set the TOOLCHAIN_NAME environment variable"
)
ANDROID_BUILD_FAIL+
=(
" (eg.
\"
arm-linux-androideabi-4.
8
\"
)"
)
ANDROID_BUILD_FAIL+
=(
" (eg.
\"
arm-linux-androideabi-4.
9
\"
)"
)
fi
if
[
-z
"
$TOOLCHAIN_HOST
"
]
;
then
...
...
@@ -210,21 +210,21 @@ function _android_build_opts_process_cxx_stl {
;;
esac
;;
gnustl_shared_4
8
)
gnustl_shared_4
9
)
LIBS+
=
" -lgnustl_shared"
CPPFLAGS+
=
" -I
${
ANDROID_NDK_ROOT
}
/sources/cxx-stl/gnu-libstdc++/4.
8
/include"
CPPFLAGS+
=
" -I
${
ANDROID_NDK_ROOT
}
/sources/cxx-stl/gnu-libstdc++/4.
9
/include"
case
"
${
TOOLCHAIN_ARCH
}
"
in
arm
)
LDFLAGS+
=
" -L
${
ANDROID_NDK_ROOT
}
/sources/cxx-stl/gnu-libstdc++/4.
8
/libs/armeabi"
CPPFLAGS+
=
" -I
${
ANDROID_NDK_ROOT
}
/sources/cxx-stl/gnu-libstdc++/4.
8
/libs/armeabi/include"
LDFLAGS+
=
" -L
${
ANDROID_NDK_ROOT
}
/sources/cxx-stl/gnu-libstdc++/4.
9
/libs/armeabi"
CPPFLAGS+
=
" -I
${
ANDROID_NDK_ROOT
}
/sources/cxx-stl/gnu-libstdc++/4.
9
/libs/armeabi/include"
;;
x86
)
LDFLAGS+
=
" -L
${
ANDROID_NDK_ROOT
}
/sources/cxx-stl/gnu-libstdc++/4.
8
/libs/x86"
CPPFLAGS+
=
" -I
${
ANDROID_NDK_ROOT
}
/sources/cxx-stl/gnu-libstdc++/4.
8
/libs/x86/include"
LDFLAGS+
=
" -L
${
ANDROID_NDK_ROOT
}
/sources/cxx-stl/gnu-libstdc++/4.
9
/libs/x86"
CPPFLAGS+
=
" -I
${
ANDROID_NDK_ROOT
}
/sources/cxx-stl/gnu-libstdc++/4.
9
/libs/x86/include"
;;
mips
)
LDFLAGS+
=
" -L
${
ANDROID_NDK_ROOT
}
/sources/cxx-stl/gnu-libstdc++/4.
8
/libs/mips"
CPPFLAGS+
=
" -I
${
ANDROID_NDK_ROOT
}
/sources/cxx-stl/gnu-libstdc++/4.
8
/libs/mips/include"
LDFLAGS+
=
" -L
${
ANDROID_NDK_ROOT
}
/sources/cxx-stl/gnu-libstdc++/4.
9
/libs/mips"
CPPFLAGS+
=
" -I
${
ANDROID_NDK_ROOT
}
/sources/cxx-stl/gnu-libstdc++/4.
9
/libs/mips/include"
;;
*
)
ANDROID_BUILD_FAIL+
=(
"Unknown combination for ANDROID_BUILD_CXXSTL and TOOLCHAIN_ARCH"
)
...
...
builds/android/build.sh
View file @
b4abaad2
...
...
@@ -8,7 +8,7 @@ ANDROID_BUILD_DIR="$(pwd)"
source
${
ANDROID_BUILD_DIR
}
/android_build_helper.sh
# Choose a C++ standard library implementation from the ndk
ANDROID_BUILD_CXXSTL
=
"gnustl_shared_4
8
"
ANDROID_BUILD_CXXSTL
=
"gnustl_shared_4
9
"
# Set up android build environment and set ANDROID_BUILD_OPTS array
android_build_env
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment