c8a0e2f4c6
This commit finalizes support for cross compilation. The tools directory are all links to the actual tools and are built on the host system to build Minix. build.sh is the work horse that takes care of all environment settings. It's slightly adjusted for Minix. The /usr/src/Makefile has additional targets needed for cross compilation.
34 lines
795 B
Text
34 lines
795 B
Text
$NetBSD$
|
|
|
|
--- gcc/libgcov.c.orig Thu Apr 9 23:23:07 2009
|
|
+++ gcc/libgcov.c
|
|
@@ -40,6 +40,11 @@ see the files COPYING3 and COPYING.RUNTIME respectivel
|
|
#define GCOV_LINKAGE /* nothing */
|
|
#endif
|
|
#endif
|
|
+
|
|
+#ifndef L_gcov_merge_add
|
|
+#include "gcov-minix-fs-wrapper.h"
|
|
+#endif
|
|
+
|
|
#include "gcov-io.h"
|
|
|
|
#if defined(inhibit_libc)
|
|
@@ -152,7 +157,7 @@ gcov_version (struct gcov_info *ptr, gcov_unsigned_t v
|
|
in two separate programs, and we must keep the two program
|
|
summaries separate. */
|
|
|
|
-static void
|
|
+void
|
|
gcov_exit (void)
|
|
{
|
|
struct gcov_info *gi_ptr;
|
|
@@ -564,7 +569,7 @@ __gcov_init (struct gcov_info *info)
|
|
gcov_crc32 = crc32;
|
|
|
|
if (!gcov_list)
|
|
- atexit (gcov_exit);
|
|
+ atexit (gcov_exit_wrapper);
|
|
|
|
info->next = gcov_list;
|
|
gcov_list = info;
|