如何应用 GCC 补丁
我正在尝试将 此 补丁应用于 MinGW 上的 GCC 来获取它编译 GDC 2,但我不知道如何。 (我对 GCC 的内部结构仍然很陌生,甚至对一般的 *nix 工具也很陌生。)我知道有 patch
命令,但我不知道如何使用它,而且我不知道甚至不知道我是否有足够的信息。
如何应用 GCC 补丁?
I'm trying to apply this patch to GCC on MinGW to get it to compile GDC 2, but I don't know how. (I'm still new to the internals of GCC, and even to *nix tools in general.) I know there's the patch
command but I can't figure out how to use it, and I don't even know if I have enough information for this.
How do I apply the patch for GCC?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
默认情况下,可以通过从 stdin(控制台输入)向其提供补丁文件来使用 GNU Patch,例如:
patch 可以使用许多开关和选项,功能是此处描述:
http://www.rtr.com/winpak/Documentation/patch.htm< /a>
http://www.gnu.org/ software/diffutils/manual/html_mono/diff.html#Invoking%20patch
patch
和diff
携手合作。 wikipedia 上有一个小型演示。By default GNU Patch can be used by feeding a patch file to it from
stdin
(console input), e.g.:There are many switches and options
patch
can use, the functionality is described here:http://www.rtr.com/winpak/Documentation/patch.htm
http://www.gnu.org/software/diffutils/manual/html_mono/diff.html#Invoking%20patch
patch
anddiff
work hand in hand. A small demonstration is found on wikipedia.查看补丁手册页。只需在终端窗口中输入
man patch
...通常我认为您想要执行patch -p0 -i your_file.diff
。Take a look at the patch manual pages. Just type
man patch
in a terminal window... typically i think you want to do apatch -p0 -i your_file.diff
.