Quantcast
Channel: Active questions tagged gcc - Stack Overflow
Viewing all articles
Browse latest Browse all 22002

Link against bionic libc on ARM executable

$
0
0

I have a simple Hello World C program:

#include <stdio.h>int main() {   printf("Hello World!");   return 0;}

And I am able to cross-compile it for my Android smartphone using the following command:

arm-linux-gnueabihf-gcc -static helloworld.c -o hello

The issue that I am dealing with though, is that the compiler does not use the bionic version of libc, which is that I want. Is it possible to somehow specify that I want that specific - bionic - libc version to be statically linked instead?


Viewing all articles
Browse latest Browse all 22002

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>