aboutsummaryrefslogtreecommitdiff
path: root/ld/config
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1993-08-11 19:14:25 +0000
committerIan Lance Taylor <ian@airs.com>1993-08-11 19:14:25 +0000
commitd62026add2f21475424e759d72f27e7349405c07 (patch)
tree64a696f038d506db6617376ded83b23c5fb63470 /ld/config
parentd92aadfd5aa8220c8b23ad7fda7e17eaa1e66789 (diff)
downloadgdb-d62026add2f21475424e759d72f27e7349405c07.zip
gdb-d62026add2f21475424e759d72f27e7349405c07.tar.gz
gdb-d62026add2f21475424e759d72f27e7349405c07.tar.bz2
* config/i386v.mh, config/irix4.mh: Use gcc
-print-libgcc-file-name rather than $(libdir)/libgcc.a.
Diffstat (limited to 'ld/config')
-rw-r--r--ld/config/i386v.mh2
-rw-r--r--ld/config/irix4.mh2
2 files changed, 2 insertions, 2 deletions
diff --git a/ld/config/i386v.mh b/ld/config/i386v.mh
index 15207fb..2646840 100644
--- a/ld/config/i386v.mh
+++ b/ld/config/i386v.mh
@@ -1,4 +1,4 @@
# For testing, we want to use /lib/crt1.o and /lib/crtn.o so that
# constructors work properly.
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 echo $(libdir)/libgcc.a; fi` -lc `if [ -f ../gcc/crtend.o ]; then echo ../gcc/crtend.o; fi` /lib/crtn.o
+HOSTING_LIBS=`if [ -f ../gcc/libgcc.a ] ; then echo ../gcc/libgcc.a ; else gcc -print-libgcc-file-name; fi` -lc `if [ -f ../gcc/crtend.o ]; then echo ../gcc/crtend.o; fi` /lib/crtn.o
diff --git a/ld/config/irix4.mh b/ld/config/irix4.mh
index 7e778a4..0ac5b8c 100644
--- a/ld/config/irix4.mh
+++ b/ld/config/irix4.mh
@@ -1,3 +1,3 @@
# Irix 4.0.1 does not use /lib/crt0.o
HOSTING_CRT0=/usr/lib/crt1.o
-HOSTING_LIBS=`if [ -f ../gcc/libgcc.a ] ; then echo ../gcc/libgcc.a ; else echo $(libdir)/libgcc.a; fi` -lc /usr/lib/crtn.o
+HOSTING_LIBS=`if [ -f ../gcc/libgcc.a ] ; then echo ../gcc/libgcc.a ; else gcc -print-libgcc-file-name; fi` -lc /usr/lib/crtn.o