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

[BUG] NDK ignore the APP_STL variable #1401

Closed
vvb2060 opened this issue Dec 14, 2020 · 3 comments
Closed

[BUG] NDK ignore the APP_STL variable #1401

vvb2060 opened this issue Dec 14, 2020 · 3 comments
Labels

Comments

@vvb2060
Copy link

vvb2060 commented Dec 14, 2020

Description

The prefab requires c++_static, I added APP_STL := c++_static to Application.mk. However, NDK ignored this variable when the cpp file did not exist in LOCAL_SRC_FILES, make build fail: error: undefined reference to 'operator delete(void*)'

test case: vvb2060/XposedDetector@334279e vvb2060/XposedDetector@5cca1de
log: https://github.com/vvb2060/XposedDetector/runs/1551353201?check_suite_focus=true#step:5:60

Environment Details

  • NDK Version: 21.3.6528147
  • Build system: ndk-build
  • Host OS: Mac and Ubuntu
  • ABI: ALL
  • NDK API level: 21
  • Device API level: N/A
@vvb2060 vvb2060 added the bug label Dec 14, 2020
@DanAlbert
Copy link
Member

Just to make sure I've understood the test case, the imported library uses C++ but the importing code does not?

@vvb2060
Copy link
Author

vvb2060 commented Dec 14, 2020

prefab use c++, LOCAL_MODULE only has .c file: LOCAL_SRC_FILES := vvb2060.c

@DanAlbert
Copy link
Member

Gotcha. That's a prefab bug then. Refiled as google/prefab#125

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

No branches or pull requests

2 participants