Patch -- fix 7 ld testsuites failures for Uw7

Matt Schalit mschalit@pacbell.net
Sat Jun 9 09:22:00 GMT 2001


Hi folks,

The following patch fixes 7 binutils ld testsuite
failures on SCO UnixWare 7.x.x when binutils is 
compiled with gcc.


                            before  |   after
----------------------------------------------
# of expected passes           14   |    21
# of unexpexted failures       11   |     4
# of expected failures          1   |     1



I checked out binutils from cvs on 6.8.2001 and
made changes to src/binutils/ld/configure.host
so that it matches sysv4 but also so that it
handles the fact that 

   CC != "gcc"

but rather

  CC = "gcc -L/home/matthew/Uber/CVS/src/ld"

So I changed an if-then-else style statement to
a case statement that can handle finding gcc as a 
substring in the variable CC.  Ok?


Regards
Matt




--------------------------------------------------------------------------------
--- src/ld/configure.host.orig  Wed Jun  6 05:11:23 2001
+++ src/ld/configure.host       Sat Jun  9 09:15:01 2001
@@ -55,6 +55,12 @@
   HOSTING_LIBS='`if [ -f ../gcc/libgcc.a ] ; then echo ../gcc/libgcc.a ; else ${CC} -print-libgcc-file-name; fi` -lc `if [ -f ../gcc/crtend.o ]; then echo ../gcc/crtend.o; else ${CC} -print-file-name=crtend.o; fi`'
   ;;

+i[3456]86-*-sysv5uw7*)
+  HOSTING_CRT0='/usr/ccs/lib/crt1.o /usr/ccs/lib/crti.o /usr/ccs/lib/values-Xa.o `if [ -f ../gcc/crtbegin.o ]; then echo ../gcc/crtbegin.o; else case "${CC}" in gcc*) ${CC} -print-file-name=crtbegin.o;; esac; fi`'
+  HOSTING_LIBS='`if [ -f ../gcc/libgcc.a ] ; then echo ../gcc/libgcc.a ; else case "${CC}" in gcc*) ${CC} -print-libgcc-file-name;; esac; fi` -lc `if [ -f ../gcc/crtend.o ]; then echo ../gcc/crtend.o; else case "${CC}" in gcc*) ${CC} -print-file-name=crtend.o;; esac; fi` /usr/ccs/lib/crtn.o'
+  NATIVE_LIB_DIRS=/usr/ccs/lib
+  ;;
+
 i[3456]86-*-sysv*)
   HOSTING_CRT0='/lib/crt1.o `if [ -f ../gcc/crtbegin.o ]; then echo ../gcc/crtbegin.o; fi`'
   HOSTING_LIBS='`if [ -f ../gcc/libgcc.a ] ; then echo ../gcc/libgcc.a ; else ${CC} -print-libgcc-file-name; fi` -lc `if [ -f ../gcc/crtend.o ]; then echo ../gcc/crtend.o; fi` /lib/crtn.o'
-----------------------------------------------------------------------------------



More information about the Binutils mailing list