This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
PATCH: Use AC_PROG_CXX in ld
- From: "H.J. Lu" <hongjiu dot lu at intel dot com>
- To: binutils at sourceware dot org
- Date: Sat, 22 Jan 2011 11:27:20 -0800
- Subject: PATCH: Use AC_PROG_CXX in ld
- Reply-to: "H.J. Lu" <hjl dot tools at gmail dot com>
Hi,
Makefile.am in ld sets CXX directly. I checked in this patch to add
AC_PROG_CXX to configure and regenerate Makefile.in and configure.
H.J.
---
2011-01-22 H.J. Lu <hongjiu.lu@intel.com>
* Makefile.am (CXX): Removed.
* configure.in: Add AC_PROG_CXX.
* Makefile.in: Regenerated.
* configure: Likewise.
diff --git a/ld/Makefile.am b/ld/Makefile.am
index 88eec0b..75f13a4 100644
--- a/ld/Makefile.am
+++ b/ld/Makefile.am
@@ -92,7 +92,6 @@ CC_FOR_TARGET = ` \
fi; \
fi`
-CXX = g++
CXX_FOR_TARGET = ` \
if [ -f $$r/../gcc/g++ ] ; then \
if [ -f $$r/../newlib/Makefile ] ; then \
diff --git a/ld/Makefile.in b/ld/Makefile.in
index 9578f9d..51b0f47 100644
--- a/ld/Makefile.in
+++ b/ld/Makefile.in
@@ -183,6 +183,10 @@ CCDEPMODE = @CCDEPMODE@
CFLAGS = @CFLAGS@
CPP = @CPP@
CPPFLAGS = @CPPFLAGS@
+CXX = @CXX@
+CXXCPP = @CXXCPP@
+CXXDEPMODE = @CXXDEPMODE@
+CXXFLAGS = @CXXFLAGS@
CYGPATH_W = @CYGPATH_W@
DATADIRNAME = @DATADIRNAME@
DEFS = @DEFS@
@@ -281,6 +285,7 @@ abs_srcdir = @abs_srcdir@
abs_top_builddir = @abs_top_builddir@
abs_top_srcdir = @abs_top_srcdir@
ac_ct_CC = @ac_ct_CC@
+ac_ct_CXX = @ac_ct_CXX@
ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
am__include = @am__include@
am__leading_dot = @am__leading_dot@
@@ -396,7 +401,6 @@ CC_FOR_TARGET = ` \
fi; \
fi`
-CXX = g++
CXX_FOR_TARGET = ` \
if [ -f $$r/../gcc/g++ ] ; then \
if [ -f $$r/../newlib/Makefile ] ; then \
diff --git a/ld/configure.in b/ld/configure.in
index 15d7685..2836545 100644
--- a/ld/configure.in
+++ b/ld/configure.in
@@ -132,6 +132,7 @@ fi
# host-specific stuff:
AC_PROG_CC
+AC_PROG_CXX
AC_GNU_SOURCE
AC_USE_SYSTEM_EXTENSIONS
ACX_LARGEFILE