This is the mail archive of the
libc-hacker@sourceware.cygnus.com
mailing list for the glibc project.
Problem with cross-compilation
- To: libc-hacker@cygnus.com
- Subject: Problem with cross-compilation
- From: Mark Kettenis <kettenis@phys.uva.nl>
- Date: Thu, 24 Sep 1998 22:11:30 +0200 (CEST)
Hi,
This change is needed when cross-compiling for a host that's not
Linux. I believe that the thing the HAVE_GNU_LD fragment was supposed
to do, is handled by the `weak_alias' macro in a better way, so I
removed that fragment. Please correct me if I'm wrong!
Mark
1998-09-24 Mark Kettenis <kettenis@phys.uva.nl>
* sysdeps/unix/siglist.c: Make sys_siglist a weak alias for
_sys_siglist. [!HAVE_GNU_LD]: Do not define _sys_siglist as
sys_siglist. This is handled correctly by the weak_alias macro.
Index: sysdeps/unix/siglist.c
--- 0.17/sysdeps/unix/siglist.c Thu, 24 Sep 1998 21:02:43 +0200 kettenis (libc/b/24_siglist.c 1.1 666)
+++ Local.16(w)/sysdeps/unix/siglist.c Thu, 24 Sep 1998 21:08:31 +0200 kettenis (libc/b/24_siglist.c 1.1 666)
@@ -1,4 +1,4 @@
-/* Copyright (C) 1996, 1997 Free Software Foundation, Inc.
+/* Copyright (C) 1996, 1997, 1998 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@@ -18,10 +18,6 @@
#include <stddef.h>
-#ifndef HAVE_GNU_LD
-#define _sys_siglist sys_siglist
-#endif
-
/* This is a list of all known signal numbers. */
const char *const _sys_siglist[] =
@@ -60,3 +56,5 @@
N_("User defined signal 2"),
NULL
};
+
+weak_alias (_sys_siglist, sys_siglist)