Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我之前在 /usr/src/ 中编译过 linux 内核代码。cmplt 制作花了 2 小时。今天我刚刚将源代码文件夹从 /usr/src/ 移到了我的主目录。
当我再次发出 make 命令时,它开始生成 .o 文件,即使我没有更改单个文件。请帮助我,因为我不想再花两个小时做。
我认为 make 的这种行为是因为它使用了文件的修改时间...我也尝试将源代码文件放回 /usr/src/ (之前的位置),但这也不起作用。谢谢 :)
也许您只是复制了源代码而不是已经编译的文件?也永远不要在你的主目录之外编译一些东西。至少如果你必须为此扎根的话。