Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Ledest:erlang:24
erlang
0418-Use-the-static-version-of-libc-on-Android....
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0418-Use-the-static-version-of-libc-on-Android.patch of Package erlang
From 8aa90d58b5bf9266ea4fde94f474534ec0e97465 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20de=20Bretagne?= <jerome.debretagne@gmail.com> Date: Fri, 19 Aug 2022 23:07:48 +0200 Subject: [PATCH 2/3] Use the static version of libc++ on Android Remove the runtime dependency on libc++_shared.so for the JIT flavor of beam.smp. This simplifies Erlang deployment on Android as libc++ is not provided as a system library. See https://developer.android.com/ndk/guides/cpp-support --- xcomp/erl-xcomp-arm64-android.conf | 4 +++- xcomp/erl-xcomp-x86_64-android.conf | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/xcomp/erl-xcomp-arm64-android.conf b/xcomp/erl-xcomp-arm64-android.conf index 62ba76a5cf..2612617e8b 100644 --- a/xcomp/erl-xcomp-arm64-android.conf +++ b/xcomp/erl-xcomp-arm64-android.conf @@ -127,7 +127,9 @@ CXX="aarch64-linux-$NDK_ABI_PLAT-clang++" LD="aarch64-linux-android-ld" # * `LDFLAGS' - Linker flags. -#LDFLAGS= +# Use the static version of libc++ provided by the Android NDK +# when compiling the JIT flavor of the beam.smp executable. +LDFLAGS="-static-libstdc++" # * `LIBS' - Libraries. #LIBS= diff --git a/xcomp/erl-xcomp-x86_64-android.conf b/xcomp/erl-xcomp-x86_64-android.conf index 26f8765b2e..01e02f34fe 100644 --- a/xcomp/erl-xcomp-x86_64-android.conf +++ b/xcomp/erl-xcomp-x86_64-android.conf @@ -101,7 +101,9 @@ CXX=x86_64-linux-$NDK_ABI_PLAT-clang++ LD=x86_64-linux-android-ld.gold # * `LDFLAGS' - Linker flags. -#LDFLAGS= +# Use the static version of libc++ provided by the Android NDK +# when compiling the JIT flavor of the beam.smp executable. +LDFLAGS="-static-libstdc++" # * `LIBS' - Libraries. #LIBS= -- 2.35.3
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor