@@ -1040,35 +1040,7 @@ def rebuild_compiled_components(self, arch, env):
1040
1040
class CppCompiledComponentsPythonRecipe (CompiledComponentsPythonRecipe ):
1041
1041
""" Extensions that require the cxx-stl """
1042
1042
call_hostpython_via_targetpython = False
1043
-
1044
- def get_recipe_env (self , arch ):
1045
- env = super (CppCompiledComponentsPythonRecipe , self ).get_recipe_env (arch )
1046
- keys = dict (
1047
- ctx = self .ctx ,
1048
- arch = arch ,
1049
- arch_noeabi = arch .arch .replace ('eabi' , '' )
1050
- )
1051
- env ['LDSHARED' ] = env ['CC' ] + ' -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions'
1052
- env ['CFLAGS' ] += (
1053
- " -I{ctx.ndk_dir}/platforms/android-{ctx.android_api}/arch-{arch_noeabi}/usr/include" +
1054
- " -I{ctx.ndk_dir}/sources/cxx-stl/gnu-libstdc++/{ctx.toolchain_version}/include" +
1055
- " -I{ctx.ndk_dir}/sources/cxx-stl/gnu-libstdc++/{ctx.toolchain_version}/libs/{arch.arch}/include" ).format (** keys )
1056
- env ['CXXFLAGS' ] = env ['CFLAGS' ] + ' -frtti -fexceptions'
1057
- env ['LDFLAGS' ] += (
1058
- " -L{ctx.ndk_dir}/sources/cxx-stl/gnu-libstdc++/{ctx.toolchain_version}/libs/{arch.arch}" +
1059
- " -lgnustl_shared" ).format (** keys )
1060
-
1061
- return env
1062
-
1063
- def build_compiled_components (self , arch ):
1064
- super (CppCompiledComponentsPythonRecipe , self ).build_compiled_components (arch )
1065
-
1066
- # Copy libgnustl_shared.so
1067
- with current_directory (self .get_build_dir (arch .arch )):
1068
- sh .cp (
1069
- "{ctx.ndk_dir}/sources/cxx-stl/gnu-libstdc++/{ctx.toolchain_version}/libs/{arch.arch}/libgnustl_shared.so" .format (ctx = self .ctx , arch = arch ),
1070
- self .ctx .get_libs_dir (arch .arch )
1071
- )
1043
+ need_stl_shared = True
1072
1044
1073
1045
1074
1046
class CythonRecipe (PythonRecipe ):
0 commit comments