Skip to content
This repository was archived by the owner on Aug 31, 2021. It is now read-only.

Commit b1b9c1d

Browse files
Fraser J. Gordonlivecodeian
authored andcommitted
Fix the specification of the Android library path
The case of an empty library path (e.g. when using a standalone Android toolchain) was not handled properly and could cause strange linker errors.
1 parent 51d0d3f commit b1b9c1d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

config/android-settings.gypi

100644100755
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
'variables':
33
{
44
'c++_std': '<!(echo ${CXX_STD:-c++11})',
5-
'android_lib_path%': '<!(echo ${ANDROID_LIB_PATH})',
5+
'android_lib_path%': '<!(echo ${ANDROID_LIB_PATH:+-L${ANDROID_LIB_PATH}})',
66
},
77

88
'cflags':
@@ -36,7 +36,7 @@
3636
{
3737
'ldflags':
3838
[
39-
'-L<(android_lib_path)',
39+
'<(android_lib_path)',
4040
'-lstdc++',
4141
],
4242

0 commit comments

Comments
 (0)