PATCH for gcc34 (so it will build ports)

walt wa1ter at myrealbox.com
Tue Apr 12 04:53:26 PDT 2005


I'm deep into bikeshed territory with this one, so I don't expect
it will be committed.  (But it works for me.)

--- 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=460001");			\
 	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