如何应用GCC补丁 [英] How to Apply a GCC Patch
问题描述
我正尝试在MinGW上向GCC应用这个补丁让它编译GDC 2 ,但我不知道如何。 (我对GCC的内部依然很陌生,甚至对一般的* nix工具都是新手)。我知道有 patch
命令,但我无法弄清楚如何使用它,我甚至不知道我是否有足够的信息。
如何为GCC应用补丁?
stdin
(控制台输入)默认可以使用GNU Patch来为其提供补丁文件。 ,例如:
补丁< file.patch
有许多开关和选项 patch
可以使用,其功能描述如下:
http://www.rtr.com/winpak/Documentation/patch.htm
http://www.gnu.org/software/diffutils/manual/html_mono/diff.html#调用%20patch
patch
和 diff
携手合作。在维基百科上可以找到一个小示范。
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?
By default GNU Patch can be used by feeding a patch file to it from stdin
(console input), e.g.:
patch < file.patch
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
and diff
work hand in hand. A small demonstration is found on wikipedia.
这篇关于如何应用GCC补丁的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!