This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
GCC doesn't use binutils' NM when it should
- To: gcc-patches at gcc dot gnu dot org
- Subject: GCC doesn't use binutils' NM when it should
- From: Alexandre Oliva <aoliva at redhat dot com>
- Date: 09 May 2001 10:37:01 -0300
- Organization: GCC Team, Red Hat
gcc/Makefile.in refers to ../binutils/nm, but nm is created as nm-new,
so it never finds it. Currently this works because NM is passed down
from the top-level Makefile, which is correct. This patch fixes it.
I'm checking it in mainline.
Index: gcc/ChangeLog
from Alexandre Oliva <aoliva@redhat.com>
* Makefile.in (NM_FOR_TARGET): Look for ./nm, then
../binutils/nm-new instead of ../binutils/nm.
Index: gcc/Makefile.in
===================================================================
RCS file: /cvs/gcc/egcs/gcc/Makefile.in,v
retrieving revision 1.656
diff -u -p -r1.656 Makefile.in
--- gcc/Makefile.in 2001/05/07 04:30:01 1.656
+++ gcc/Makefile.in 2001/05/09 13:36:48
@@ -230,8 +230,10 @@ RANLIB_TEST_FOR_TARGET = \
|| ( [ "$(host_canonical)" = "$(target)" ] \
&& [ -f /usr/bin/ranlib -o -f /bin/ranlib ] )
NM_FOR_TARGET = ` \
- if [ -f $(objdir)/../binutils/nm ] ; then \
- echo $(objdir)/../binutils/nm ; \
+ if [ -f ./nm ] ; then \
+ echo ./nm ; \
+ elif [ -f $(objdir)/../binutils/nm-new ] ; then \
+ echo $(objdir)/../binutils/nm-new ; \
else \
if [ "$(host_canonical)" = "$(target)" ] ; then \
echo nm; \
--
Alexandre Oliva Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist *Please* write to mailing lists, not to me