我正在做一个项目,我需要为 Android 修改 dd
,但我不知道如何构建它。我尝试了一种使用 arm-linux-gnueabi-gcc dd.c -o dd
的简单方法,但这当然行不通。而且我也找不到 makefile。
是否可以只构建 dd
还是我需要构建 toolbox
或整个系统?无论如何,我该怎么做?
我找到了源代码here .
编辑:
是否可以构建 GNU core utils用于 ARM
?我尝试使用 ./configure --host=arm-linux --target=arm-linux && make
,但是 file dd
仍然返回 executable, x86-64
。
最佳答案
经过大量谷歌搜索后,我终于能够为 arm
构建 GNU 核心实用程序。
我首先必须将环境变量 CC
和 CXX
设置为 arm-linux-gnueabi-gcc
和 LDFLAGS
到 -static
。然后我就运行了 ./configure --target=arm-linux --host=arm-linux && make
就是这样。
关于android - 如何为 arm (Android) 重建核心实用程序?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34739525/