gpt4 book ai didi

linux - 为什么我编译的bash(3.8M)比我的系统提供的bash(937K)大?

转载 作者:太空狗 更新时间:2023-10-29 11:27:38 24 4
gpt4 key购买 nike

我在这里下载了 bash shell 4.2 版:http://ftp.gnu.org/gnu/bash/ ,然后使用以下命令自行编译:

./configure
make

但是我编译的 bash 比提供的一个系统大得多:

这是我的庆典:

$ ls -lh bash
-rwxrwxr-x 1 unimous unimous 3.8M Oct 31 23:57 bash

这是系统的 bash:

$ ls -hl /bin/bash 
-rwxr-xr-x 1 root root 937K Sep 19 21:40 /bin/bash

最佳答案

如果您运行 strip(1),尺寸会更加匹配。正如 Tim Post 指出的那样,bash 的生产 make 目标不会剥离,因为它们假定用户需要调试符号。然而,分发目标确实会被剥离。

关于linux - 为什么我编译的bash(3.8M)比我的系统提供的bash(937K)大?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13205405/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com