Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Include NDK /sources/cxx-stl/gnu-libstdc++/ #670

Closed
brussee opened this issue Mar 4, 2016 · 1 comment
Closed

Include NDK /sources/cxx-stl/gnu-libstdc++/ #670

brussee opened this issue Mar 4, 2016 · 1 comment

Comments

@brussee
Copy link
Contributor

brussee commented Mar 4, 2016

For every recipe that would like to compile against gnu-libstdc++ (libgnustl_shared.so) it needs to set these flags:

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['LDFLAGS'] += ' -L' + self.ctx.ndk_dir + '/sources/cxx-stl/gnu-libstdc++/' + self.ctx.toolchain_version + '/libs/' + arch.arch + \
                  ' -lgnustl_shared'

Perhaps this can be put in some recipe class?

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

@inclement
Copy link
Member

The CppCompiledComponentsPythonRecipe exists for this nowadays.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants