This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: (Solaris 2.7 - binutils-2.13.1) Broken Makefile (and configure?) for prebuild of ar
- From: Alan Modra <amodra at bigpond dot net dot au>
- To: ian at airs dot com
- Cc: binutils at sources dot redhat dot com, bug-binutils at gnu dot org, "svend_o_c at www dot com" <svend_o_c at www dot com>
- Date: Tue, 17 Dec 2002 20:10:39 +1030
- Subject: Re: (Solaris 2.7 - binutils-2.13.1) Broken Makefile (and configure?) for prebuild of ar
- References: <37649.153.110.6.241.1040114390.fastmailerweb@webmail.www.com>
On Tue, Dec 17, 2002 at 08:39:50AM -0000, svend_o_c@www.com wrote:
> The README file in the binutils subdirectory lists a
> script to use for building ar.
> I ran configure as usual, and the script.
> The last step (building the ar executable) failed
> with this message:
>
> Undefined first referenced
> symbol in file
> mkstemps ../libiberty/make-temp-file.o
> ld: fatal: Symbol referencing errors. No output written to ar
Does anyone know why we bother with needed-list and required-list,
and not use ../libiberty/*.o ? As far as I can tell, this script
hasn't changed since Ian created it.
Index: binutils/README
===================================================================
RCS file: /cvs/src/src/binutils/README,v
retrieving revision 1.5
diff -u -p -r1.5 README
--- binutils/README 8 Mar 2002 06:05:18 -0000 1.5
+++ binutils/README 17 Dec 2002 09:34:12 -0000
@@ -100,7 +100,7 @@ ${MAKE} $* all-bfd
cd binutils
MAKE="${MAKE_PROG}"
export MAKE
-${MAKE} $* ar_DEPENDENCIES= ar_LDADD='../bfd/*.o `cat ../libiberty/required-list ../libiberty/needed-list | sed -e "s,\([^ ][^ ]*\),../libiberty/\1,g"` `if test -f ../intl/gettext.o; then echo '../intl/*.o'; fi`' ar
+${MAKE} $* ar_DEPENDENCIES= ar_LDADD='../bfd/*.o ../libiberty/*.o `if test -f ../intl/gettext.o; then echo '../intl/*.o'; fi`' ar
This script will build an ar program in binutils/ar. Move binutils/ar
into a directory on your PATH. After doing this, you can run make as
--
Alan Modra
IBM OzLabs - Linux Technology Centre