This is the mail archive of the libc-alpha@sources.redhat.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

2.1.94: No way to compile for mipsel-linux-gnu w/o optimization


Hi,

 When trying to build a CVS snapshot from Oct 2nd, with no optimization,
i.e. when configured with: `CFLAGS=-O0 ./configure --disable-omitfp', the
process bails out due to a duplicate definition of __libc_multiple_libcs
(which is defined both in sysdeps/generic/dl-sysdep.c and in
sysdeps/unix/sysv/linux/init-first.c indeed).  While this was observed
with mipsel-linux-gnu host, I believe it applies to all *-linux-gnu hosts
as init-first.c is shared.

 The following patch fixes the problem for me.

2000-10-09  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>

	* sysdeps/generic/dl-sysdep.c (__libc_argc): Define to prevent
	from inclusion of init-first.
	(__libc_argv): Likewise.

  Maciej

-- 
+  Maciej W. Rozycki, Technical University of Gdansk, Poland   +
+--------------------------------------------------------------+
+        e-mail: macro@ds2.pg.gda.pl, PGP key available        +

diff -u --recursive --new-file glibc.macro/sysdeps/generic/dl-sysdep.c glibc/sysdeps/generic/dl-sysdep.c
--- glibc.macro/sysdeps/generic/dl-sysdep.c	Wed Aug 23 02:27:02 2000
+++ glibc/sysdeps/generic/dl-sysdep.c	Sat Oct  7 12:34:33 2000
@@ -53,6 +53,8 @@
 int __libc_enable_secure;
 int __libc_multiple_libcs = 0;	/* Defining this here avoids the inclusion
 				   of init-first.  */
+int __libc_argc;		/* Likewise.  */
+char **__libc_argv;		/* Ditto.  */
 /* This variable contains the lowest stack address ever used.  */
 void *__libc_stack_end;
 static ElfW(auxv_t) *_dl_auxv;


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]