leleliu008 / ndk-pkg

A package builder/manager for Android NDK to build projects written in C, C++, Rust, Golang, etc.
http://blog.fpliu.com/project/ndk-pkg
Apache License 2.0
88 stars 14 forks source link

how to build also static libraries? #6

Closed juha-h closed 3 years ago

juha-h commented 3 years ago

When I run ndk-pkg install abseil only dynamic (.so) libraries are build. How can I get also static (.a) libraries built?

leleliu008 commented 3 years ago

step1. edit the formula of abseil package

ndk-pkg formula edit abseil

step2. add the following code

-DBUILD_SHARED_LIBS=OFF

step3. rebuild it

ndk-build install abseil
juha-h commented 3 years ago

Thanks.