aboutsummaryrefslogtreecommitdiff
path: root/binutils/configure.in
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1995-09-04 21:14:33 +0000
committerIan Lance Taylor <ian@airs.com>1995-09-04 21:14:33 +0000
commit109eb06cce362f040b062107897826fc1b01431e (patch)
treec21a264542fbf94717a76ccf557cac4c6ec29116 /binutils/configure.in
parentf515fb2f93d81fb401d86f9db2bf3c96cd659737 (diff)
downloadgdb-109eb06cce362f040b062107897826fc1b01431e.zip
gdb-109eb06cce362f040b062107897826fc1b01431e.tar.gz
gdb-109eb06cce362f040b062107897826fc1b01431e.tar.bz2
* configure.in (host_makefile_frag): Don't set. Substitute for
@CC@, @CFLAGS@, @HDEFINES@ and @LDFLAGS@ in Makefile. * Makefile.in (AR_FLAGS): Set to rc rather than qv. (CC): Define as @CC@. (CFLAGS): Set to @CFLAGS@. (LDFLAGS): Define as @LDFLAGS@. (ALL_CFLAGS): Use @HDEFINES@ rather than $(HDEFINES).
Diffstat (limited to 'binutils/configure.in')
-rw-r--r--binutils/configure.in14
1 files changed, 8 insertions, 6 deletions
diff --git a/binutils/configure.in b/binutils/configure.in
index 9177beb..878aa28 100644
--- a/binutils/configure.in
+++ b/binutils/configure.in
@@ -10,11 +10,6 @@ srcname="Binutils"
. ${srcdir}/../bfd/configure.host
-host_makefile_frag=
-if [ -f ${srcdir}/../bfd/config/${my_host}.mh ] ; then
- host_makefile_frag=../bfd/config/${my_host}.mh
-fi
-
# per-target:
# Canonicalize the secondary target names.
@@ -115,6 +110,13 @@ else
fi
echo "UNDERSCORE = ${underscore}" >> Makefile.2
-cat Makefile.tmp >> Makefile.2
+test -z "$CC" && CC=`egrep '^CC *=' ../Makefile | tail -1 | sed 's/^CC *= *//'`
+test -z "$CC" && CC=cc
+test -z "$CFLAGS" && CFLAGS=-g
+sed -e "s%@CC@%${CC}%" \
+ -e "s%@CFLAGS@%${CFLAGS}%" \
+ -e "s%@HDEFINES@%${HDEFINES}%" \
+ -e "s%@LDFLAGS@%${LDFLAGS}%" < Makefile.tmp >> Makefile.2
+
rm -f Makefile.tmp
mv Makefile.2 Makefile