PATCH (revised) for gcc34 (for building ports)

walt wa1ter at myrealbox.com
Fri Apr 15 12:26:57 PDT 2005


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)






More information about the Submit mailing list