国字类型网站有哪些内容,淘宝做网站给了钱,wordpress纯代码添加海报,购物网站哪里建最好我一直试图交叉编译util-linux for arm但我一直以动态链接的可执行文件结束,我不知道为什么会这样.我的目标是静态的.我在使用类似步骤的不同工具之前进行了交叉编译,并且它一直有效,所以这次我不知道我做错了什么.我正在使用Ubuntu 16.04.以下是我正在运行的命令#xff1a;e…我一直试图交叉编译util-linux for arm但我一直以动态链接的可执行文件结束,我不知道为什么会这样.我的目标是静态的.我在使用类似步骤的不同工具之前进行了交叉编译,并且它一直有效,所以这次我不知道我做错了什么.我正在使用Ubuntu 16.04.以下是我正在运行的命令export CCarm-linux-gnueabi-gccexport ac_cs_linux_vers4export CFLAGS-staticexport CPPFLAGS-staticexport LDFLAGS-static./configure --hostarm-linux LDFLAGS-static --disable-shared --without-tinfo --without-ncurses --disable-ipv6 --disable-pylibmount --enable-static-programsfdisk,sfdisk,whereis --prefix/opt/util-linux/arm --bindir/opt/util-linux/arm/bin --sbindir/opt/util-linux/arm/sbin正如你所看到的,我在每个我能想到的地方指定静态甚至重复“只是为了确保它理解我”并且在我运行configure脚本之后,这里是输出util-linux 2.28.2prefix: /opt/util-linux/armexec prefix: ${prefix}localstatedir: ${prefix}/varbindir: /opt/util-linux/arm/binsbindir: /opt/util-linux/arm/sbinlibdir: ${exec_prefix}/libincludedir: ${prefix}/includeusrbin_execdir: ${exec_prefix}/binusrsbin_execdir: ${exec_prefix}/sbinusrlib_execdir: ${exec_prefix}/libcompiler: arm-linux-gnueabi-gcccflags: -staticsuid cflags:ldflags: -staticsuid ldflags:Python: /usr/bin/pythonPython version: 2.7Python libs: ${exec_prefix}/lib/python2.7/site-packagesBash completions: /usr/share/bash-completion/completionsSystemd support: noBtrfs support: yeswarnings:然后我做make fdisk要么make whereis编译完成后,我做file fdiskfdisk是刚刚创建的文件,并且fdisk: ELF 32-bit LSB executable, ARM, EABI5 version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux.so.3, for GNU/Linux 3.2.0, BuildID[sha1]369363ef8f8173a3a1c2edc178eb77255a2dc415, not stripped正如你所看到的那样,“动态链接”.我一直在互联网上搜索,但我没有找到答案.我也这样做./configure --hostarm-linux LDFLAGS-static --disable-shared --without-tinfo --without-ncurses --disable-ipv6 --disable-pylibmount --prefix/opt/util-linux/arm --bindir/opt/util-linux/arm/bin --sbindir/opt/util-linux/arm/sbin这与之前的配置命令完全相同,除了缺少“–enable-static-programs”参数,“默认情况下应该”将所有内容编译为静态,除非它没有.我做错了什么或这是一个Makefile错误解决方法:静态二进制文件使用.static扩展构建;在构建之后,我得到了$file fdisk.staticfdisk.static: ELF 32-bit LSB executable, ARM, EABI5 version 1 (GNU/Linux), statically linked, for GNU/Linux 3.2.0, BuildID[sha1]b51ec4b17f772b881d2a1eaefd368cfb96d0db12, not stripped我只有这个./configure --hostarm-linux-gnueabihf --enable-static-programsfdisk(你不需要任何FLAGS变量;在你的设置中用gnueabi替换gnueabihf,我只是用它,因为我已经有了一个工作的armhf交叉编译设置).标签linux,arm来源 https://codeday.me/bug/20190814/1652743.html