PATCH (revised) for gcc34 (for building ports)

看板DFBSD_submit作者時間20年前 (2005/04/16 03:32), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/7 (看更多)
Asmodai, you sneaky guy -- you could have told me about the obvious error in my previous patch ;o) A moment of thought should have told me that the cc_version for gcc2 would not be correct for gcc34 -- but alas, I wasted hours in place of that one moment of thought. This updated patch uses the cc_version from FreeBSD-current, but it still does not fix all the ports compilation problems, only some. --- gnu/usr.bin/cc34/cc_prep/config/dragonfly-spec.h.orig 2005-04-11 10:26:13.000000000 -0700 +++ gnu/usr.bin/cc34/cc_prep/config/dragonfly-spec.h 2005-04-11 10:43:33.000000000 -0700 @@ -63,13 +63,17 @@ else \ builtin_define ("__DragonFly__"); \ builtin_define ("__DragonFly_cc_version=100001"); \ + builtin_define ("__FreeBSD__=4"); \ + builtin_define ("__DragonFly_cc_version=100001"); \ + builtin_define ("__FreeBSD_cc_version=600001"); \ builtin_define_std ("unix"); \ builtin_define ("__KPRINTF_ATTRIBUTE__"); \ builtin_define ("__GCC_VISIBILITY__=1"); \ builtin_assert ("system=unix"); \ builtin_assert ("system=bsd"); \ builtin_assert ("system=DragonFly"); \ - DFBSD_TARGET_CPU_CPP_BUILTINS(); \ + builtin_assert ("system=FreeBSD"); \ + DFBSD_TARGET_CPU_CPP_BUILTINS(); \ } \ while (0)
文章代碼(AID): #12O1Qw00 (DFBSD_submit)
討論串 (同標題文章)
文章代碼(AID): #12O1Qw00 (DFBSD_submit)