Git Product home page Git Product logo

Comments (6)

leleliu008 avatar leleliu008 commented on July 21, 2024 1

I find libc.a locations are following , they are the latest version of libc

sysroot/usr/lib/x86_64-linux-android/libc.a
sysroot/usr/lib/i686-linux-android/libc.a
sysroot/usr/lib/aarch64-linux-android/libc.a
sysroot/usr/lib/arm-linux-androideabi/libc.a
sysroot/usr/lib/riscv64-linux-android/libc.a

This behaver breaks the cmake https://cmake.org/cmake/help/latest/module/CheckFunctionExists.html moudle.

It seems that the only way to fix this is to ask for cmake to remove -static and --static arguments when do CheckFunctionExists.

from ndk.

leleliu008 avatar leleliu008 commented on July 21, 2024

many cmake projects create shared libraries, static libraries, dynamically linked executables or fully statically linked executables at the same time, In this case, CheckFunctionExists's result is not correct for shared libraries and dynamically linked executables if I pass -static to cmake.

from ndk.

leleliu008 avatar leleliu008 commented on July 21, 2024

#1600

from ndk.

leleliu008 avatar leleliu008 commented on July 21, 2024

why NDK only provides the latest version of libc.a? to reduce the size?

from ndk.

leleliu008 avatar leleliu008 commented on July 21, 2024

this behaver force me to split a big project (including shared libraries, static libraries, dynamically linked executables or fully statically linked executables) into some small packages, and each package is either a library package or an executable package.

from ndk.

DanAlbert avatar DanAlbert commented on July 21, 2024

why NDK only provides the latest version of libc.a? to reduce the size?

Because there's no reason to do otherwise. There's no value in using an old libc.a.

This behaver breaks the cmake https://cmake.org/cmake/help/latest/module/CheckFunctionExists.html moudle.

You have to test the same configuration that you ship. If you're building multiple configurations, you need multiple tests.

from ndk.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.