@@ -44,23 +44,24 @@ def build_arch(self, arch):
44
44
bootstrap_obj_dir = join (self .ctx .bootstrap .build_dir , 'obj' , 'local' , arch .arch )
45
45
ensure_dir (bootstrap_obj_dir )
46
46
shutil .copyfile (
47
- '{}/sources/cxx-stl/gnu-libstdc++/4.8 /libs/{}/libgnustl_shared.so' .format (
48
- self .ctx .ndk_dir , arch ),
47
+ '{}/sources/cxx-stl/gnu-libstdc++/{} /libs/{}/libgnustl_shared.so' .format (
48
+ self .ctx .ndk_dir , self . ctx . toolchain_version , arch ),
49
49
join (bootstrap_obj_dir , 'libgnustl_shared.so' ))
50
50
51
51
def get_recipe_env (self , arch ):
52
52
# XXX should stl be configuration for the toolchain itself?
53
53
env = super (LibZMQRecipe , self ).get_recipe_env (arch )
54
54
env ['CFLAGS' ] += ' -Os'
55
55
env ['CXXFLAGS' ] += ' -Os -fPIC -fvisibility=default'
56
- env ['CXXFLAGS' ] += ' -I{}/sources/cxx-stl/gnu-libstdc++/4.8/include' .format (self .ctx .ndk_dir )
57
- env ['CXXFLAGS' ] += ' -I{}/sources/cxx-stl/gnu-libstdc++/4.8/libs/{}/include' .format (
58
- self .ctx .ndk_dir , arch )
59
- env ['CXXFLAGS' ] += ' -L{}/sources/cxx-stl/gnu-libstdc++/4.8/libs/{}' .format (
60
- self .ctx .ndk_dir , arch )
56
+ env ['CXXFLAGS' ] += ' -I{}/sources/cxx-stl/gnu-libstdc++/{}/include' .format (
57
+ self .ctx .ndk_dir , self .ctx .toolchain_version )
58
+ env ['CXXFLAGS' ] += ' -I{}/sources/cxx-stl/gnu-libstdc++/{}/libs/{}/include' .format (
59
+ self .ctx .ndk_dir , self .ctx .toolchain_version , arch )
60
+ env ['CXXFLAGS' ] += ' -L{}/sources/cxx-stl/gnu-libstdc++/{}/libs/{}' .format (
61
+ self .ctx .ndk_dir , self .ctx .toolchain_version , arch )
61
62
env ['CXXFLAGS' ] += ' -lgnustl_shared'
62
- env ['LDFLAGS' ] += ' -L{}/sources/cxx-stl/gnu-libstdc++/4.8 /libs/{}' .format (
63
- self .ctx .ndk_dir , arch )
63
+ env ['LDFLAGS' ] += ' -L{}/sources/cxx-stl/gnu-libstdc++/{} /libs/{}' .format (
64
+ self .ctx .ndk_dir , self . ctx . toolchain_version , arch )
64
65
return env
65
66
66
67
0 commit comments