public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* Patch -- fix 7 ld testsuites failures for Uw7
@ 2001-06-09  9:22 Matt Schalit
  0 siblings, 0 replies; only message in thread
From: Matt Schalit @ 2001-06-09  9:22 UTC (permalink / raw)
  To: binutils

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'
-----------------------------------------------------------------------------------

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2001-06-09  9:22 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-06-09  9:22 Patch -- fix 7 ld testsuites failures for Uw7 Matt Schalit

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).