def get_recipe_env(self, arch):
        env = super(LevelDBRecipe, self).get_recipe_env(arch)
        env['TARGET_OS'] = 'OS_ANDROID_CROSSCOMPILE'
        if 'snappy' in recipe.ctx.recipe_build_order:
            env['CFLAGS'] += ' -DSNAPPY' + \
                             ' -I./snappy'
        env['CFLAGS'] += ' -I' + self.ctx.ndk_dir + '/platforms/android-' + str(self.ctx.android_api) + '/arch-' + arch.arch.replace('eabi', '') + '/usr/include' + \
                         ' -I' + self.ctx.ndk_dir + '/sources/cxx-stl/gnu-libstdc++/' + self.ctx.toolchain_version + '/include' + \
                         ' -I' + self.ctx.ndk_dir + '/sources/cxx-stl/gnu-libstdc++/' + self.ctx.toolchain_version + '/libs/' + arch.arch + '/include'
        env['CXXFLAGS'] = env['CFLAGS']
        env['CXXFLAGS'] += ' -frtti'
        env['CXXFLAGS'] += ' -fexceptions'
        env['LDFLAGS'] += ' -L' + self.ctx.ndk_dir + '/sources/cxx-stl/gnu-libstdc++/' + self.ctx.toolchain_version + '/libs/' + arch.arch + \
                          ' -lgnustl_shared'
        return env
dataset/ETHPy150Open kivy/python-for-android/pythonforandroid/recipes/leveldb/__init__.py/LevelDBRecipe.get_recipe_env/original