This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
sysroot fix
- From: Daniel Jacobowitz <drow at mvista dot com>
- To: binutils at sources dot redhat dot com
- Date: Thu, 9 Jan 2003 11:40:11 -0500
- Subject: sysroot fix
Mea culpa. This didn't show up at runtime, because ld_sysroot is the first
arg to concat(), but it could cause ld to search the host instead of the
sysroot. Checked in.
--
Daniel Jacobowitz
MontaVista Software Debian GNU/Linux Developer
2003-01-09 Daniel Jacobowitz <drow@mvista.com>
* ldmain.c (main): Make sure ld_sysroot is initialized.
Index: ldmain.c
===================================================================
RCS file: /cvs/src/src/ld/ldmain.c,v
retrieving revision 1.59
diff -u -p -r1.59 ldmain.c
--- ldmain.c 6 Jan 2003 16:13:57 -0000 1.59
+++ ldmain.c 9 Jan 2003 16:34:51 -0000
@@ -209,6 +209,8 @@ main (argc, argv)
ld_sysroot = TARGET_SYSTEM_ROOT;
}
}
+ else
+ ld_sysroot = TARGET_SYSTEM_ROOT;
#else
ld_sysroot = TARGET_SYSTEM_ROOT;
#endif