@@ -44,23 +44,24 @@ def build_arch(self, arch):
4444 bootstrap_obj_dir = join (self .ctx .bootstrap .build_dir , 'obj' , 'local' , arch .arch )
4545 ensure_dir (bootstrap_obj_dir )
4646 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 ),
4949 join (bootstrap_obj_dir , 'libgnustl_shared.so' ))
5050
5151 def get_recipe_env (self , arch ):
5252 # XXX should stl be configuration for the toolchain itself?
5353 env = super (LibZMQRecipe , self ).get_recipe_env (arch )
5454 env ['CFLAGS' ] += ' -Os'
5555 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 )
6162 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 )
6465 return env
6566
6667
0 commit comments