Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mpd
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
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Иван Мажукин
mpd
Commits
cad5d112
Commit
cad5d112
authored
Jan 19, 2018
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
android/build.py: simplify libc++ flags
By telling clang which implementation to use, we avoid the dependency on libstdc++.so.
parent
fcaedec2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
7 deletions
+5
-7
build.py
android/build.py
+5
-7
No files found.
android/build.py
View file @
cad5d112
...
...
@@ -101,15 +101,13 @@ class AndroidNdkToolchain:
libcxx_path
=
os
.
path
.
join
(
ndk_path
,
'sources/cxx-stl/llvm-libc++'
)
libcxx_libs_path
=
os
.
path
.
join
(
libcxx_path
,
'libs'
,
android_abi
)
libstdcxx_cppflags
=
'-nostdinc++ -isystem '
+
os
.
path
.
join
(
libcxx_path
,
'include'
)
+
' -isystem '
+
os
.
path
.
join
(
ndk_path
,
'sources/android/support/include'
)
libstdcxx_ldadd
=
os
.
path
.
join
(
libcxx_libs_path
,
'libc++_static.a'
)
+
' '
+
os
.
path
.
join
(
libcxx_libs_path
,
'libc++abi.a'
)
if
self
.
is_armv7
:
libstdcxx_ldadd
+=
' '
+
os
.
path
.
join
(
libcxx_libs_path
,
'libunwind.a'
)
libstdcxx_flags
=
'-stdlib=libc++'
libstdcxx_cxxflags
=
libstdcxx_flags
+
' -isystem '
+
os
.
path
.
join
(
libcxx_path
,
'include'
)
+
' -isystem '
+
os
.
path
.
join
(
ndk_path
,
'sources/android/support/include'
)
libstdcxx_ldflags
=
libstdcxx_flags
+
' -static-libstdc++ -L'
+
libcxx_libs_path
if
use_cxx
:
self
.
libs
+=
' '
+
libstdcxx_ldadd
self
.
cppflags
+=
' '
+
libstdcxx_cpp
flags
self
.
cxxflags
+=
' '
+
libstdcxx_cxxflags
self
.
ldflags
+=
' '
+
libstdcxx_ld
flags
self
.
env
=
dict
(
os
.
environ
)
...
...
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