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

x/mobile: gomobile bind use CGO_LDFLAGS #59309

Open
ImagineYao opened this issue Mar 29, 2023 · 1 comment
Open

x/mobile: gomobile bind use CGO_LDFLAGS #59309

ImagineYao opened this issue Mar 29, 2023 · 1 comment
Labels
mobile Android, iOS, and x/mobile NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone

Comments

@ImagineYao
Copy link

I need to use a so lib which has an arm64-v8a arh and an armabi-v7a arch, but when i use CGO_LDFLAGS, I can only get an aar with one arh.

CGO_LDFLAGS="-L$(LIBS_DIR)/arm64" \
gomobile bind -ldflags "-s -w" -v -target=android/arm64

截屏2023-03-29 21 04 56

The so lib is `$(LIBS_DIR)/arm64` for arm64-v8a and `$(LIBS_DIR)/arm` for armabi-v7a

how can I build an aar with both arm64-v8a and armabi-v7a arch?

@gopherbot gopherbot added the mobile Android, iOS, and x/mobile label Mar 29, 2023
@gopherbot gopherbot added this to the Unreleased milestone Mar 29, 2023
@mknyszek mknyszek added the NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. label Apr 3, 2023
@mknyszek
Copy link
Contributor

mknyszek commented Apr 3, 2023

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
mobile Android, iOS, and x/mobile NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Projects
None yet
Development

No branches or pull requests

3 participants