DragonFly BSD
DragonFly submit List (threaded) for 2005-04
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

PATCH (revised) for gcc34 (for building ports)


From: walt <wa1ter@xxxxxxxxxxxxx>
Date: Fri, 15 Apr 2005 12:26:57 -0700

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)




[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]