PATCH: PR binutils/12280: Makefiles don't support LTO
H.J. Lu
hongjiu.lu@intel.com
Thu Dec 2 05:35:00 GMT 2010
Hi,
This patch adds + to LINK in Makefile for GNU make. OK for trunk?
Thanks.
H.J.
---
bfd/
2010-12-01 H.J. Lu <hongjiu.lu@intel.com>
PR binutils/12280
* configure.in: Add GCC_CHECK_GNU_MAKE after AC_OUTPUT.
* aclocal.m4: Regenerated.
* configure: Likewise.
binutils/
2010-12-01 H.J. Lu <hongjiu.lu@intel.com>
PR binutils/12280
* configure.in: Add GCC_CHECK_GNU_MAKE after AC_OUTPUT.
* aclocal.m4: Regenerated.
* configure: Likewise.
config/
2010-12-01 H.J. Lu <hongjiu.lu@intel.com>
PR binutils/12280
* gnumake.m4: New.
gas/
2010-12-01 H.J. Lu <hongjiu.lu@intel.com>
PR binutils/12280
* configure.in: Add GCC_CHECK_GNU_MAKE after AC_OUTPUT.
* aclocal.m4: Regenerated.
* configure: Likewise.
gold/
2010-12-01 H.J. Lu <hongjiu.lu@intel.com>
PR binutils/12280
* configure.ac: Add GCC_CHECK_GNU_MAKE after AC_OUTPUT.
* aclocal.m4: Regenerated.
* configure: Likewise.
gprof/
2010-12-01 H.J. Lu <hongjiu.lu@intel.com>
PR binutils/12280
* configure.in: Add GCC_CHECK_GNU_MAKE after AC_OUTPUT.
* aclocal.m4: Regenerated.
* configure: Likewise.
ld/
2010-12-01 H.J. Lu <hongjiu.lu@intel.com>
PR binutils/12280
* configure.in: Add GCC_CHECK_GNU_MAKE after AC_OUTPUT.
* aclocal.m4: Regenerated.
* configure: Likewise.
opcodes/
2010-12-01 H.J. Lu <hongjiu.lu@intel.com>
PR binutils/12280
* configure.in: Add GCC_CHECK_GNU_MAKE after AC_OUTPUT.
* aclocal.m4: Regenerated.
* configure: Likewise.
diff --git a/bfd/aclocal.m4 b/bfd/aclocal.m4
index d9e743e..81c950a 100644
--- a/bfd/aclocal.m4
+++ b/bfd/aclocal.m4
@@ -971,6 +971,7 @@ AC_SUBST([am__untar])
m4_include([../config/acx.m4])
m4_include([../config/depstand.m4])
m4_include([../config/gettext-sister.m4])
+m4_include([../config/gnumake.m4])
m4_include([../config/largefile.m4])
m4_include([../config/lead-dot.m4])
m4_include([../config/nls.m4])
diff --git a/bfd/configure b/bfd/configure
index 278cc1d..2b6fb71 100755
--- a/bfd/configure
+++ b/bfd/configure
@@ -18589,3 +18589,31 @@ $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
fi
+
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether make is GNU make" >&5
+$as_echo_n "checking whether make is GNU make... " >&6; }
+if test "${gcc_cv_gnu_make+set}" = set; then :
+ $as_echo_n "(cached) " >&6
+else
+
+ GNU_MAKE=${MAKE-make}
+ case `$GNU_MAKE -v 2>&1` in
+ *GNU*Make*)
+ gcc_cv_gnu_make=yes
+ ;;
+ *)
+ gcc_cv_gnu_make=no
+ ;;
+ esac
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_gnu_make" >&5
+$as_echo "$gcc_cv_gnu_make" >&6; }
+ if test "$gcc_cv_gnu_make" = "yes" ; then
+ if test -f Makefile; then
+ tmpmakefile=Makefile.$$
+ sed -e "s/^LINK = \\$/LINK = +$/" Makefile > $tmpmakefile
+ mv $tmpmakefile Makefile
+ else
+ as_fn_error "Makefile doesn't exist" "$LINENO" 5
+ fi
+ fi
diff --git a/bfd/configure.in b/bfd/configure.in
index baa996a..636a72f 100644
--- a/bfd/configure.in
+++ b/bfd/configure.in
@@ -1125,3 +1125,4 @@ AC_SUBST(pdfdir)
AC_OUTPUT
+GCC_CHECK_GNU_MAKE
diff --git a/binutils/aclocal.m4 b/binutils/aclocal.m4
index ce11677..7ddd4a1 100644
--- a/binutils/aclocal.m4
+++ b/binutils/aclocal.m4
@@ -993,6 +993,7 @@ m4_include([../bfd/acinclude.m4])
m4_include([../bfd/warning.m4])
m4_include([../config/depstand.m4])
m4_include([../config/gettext-sister.m4])
+m4_include([../config/gnumake.m4])
m4_include([../config/iconv.m4])
m4_include([../config/largefile.m4])
m4_include([../config/lead-dot.m4])
diff --git a/binutils/configure b/binutils/configure
index 02b05fb..e5871fc 100755
--- a/binutils/configure
+++ b/binutils/configure
@@ -16454,3 +16454,32 @@ if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
fi
+
+
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether make is GNU make" >&5
+$as_echo_n "checking whether make is GNU make... " >&6; }
+if test "${gcc_cv_gnu_make+set}" = set; then :
+ $as_echo_n "(cached) " >&6
+else
+
+ GNU_MAKE=${MAKE-make}
+ case `$GNU_MAKE -v 2>&1` in
+ *GNU*Make*)
+ gcc_cv_gnu_make=yes
+ ;;
+ *)
+ gcc_cv_gnu_make=no
+ ;;
+ esac
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_gnu_make" >&5
+$as_echo "$gcc_cv_gnu_make" >&6; }
+ if test "$gcc_cv_gnu_make" = "yes" ; then
+ if test -f Makefile; then
+ tmpmakefile=Makefile.$$
+ sed -e "s/^LINK = \\$/LINK = +$/" Makefile > $tmpmakefile
+ mv $tmpmakefile Makefile
+ else
+ as_fn_error "Makefile doesn't exist" "$LINENO" 5
+ fi
+ fi
diff --git a/binutils/configure.in b/binutils/configure.in
index 99fc22d..05370d4 100644
--- a/binutils/configure.in
+++ b/binutils/configure.in
@@ -404,3 +404,5 @@ AC_SUBST(pdfdir)
AC_CONFIG_FILES(Makefile doc/Makefile po/Makefile.in:po/Make-in)
AC_OUTPUT
+
+GCC_CHECK_GNU_MAKE
diff --git a/config/gnumake.m4 b/config/gnumake.m4
new file mode 100644
index 0000000..2d21e12
--- /dev/null
+++ b/config/gnumake.m4
@@ -0,0 +1,22 @@
+dnl Placed after AC_OUTPUT to add `+' to LINK for GNU make.
+AC_DEFUN([GCC_CHECK_GNU_MAKE], [
+ AC_CACHE_CHECK([whether make is GNU make],
+ gcc_cv_gnu_make, [
+ GNU_MAKE=${MAKE-make}
+ case `$GNU_MAKE -v 2>&1` in
+ *GNU*Make*)
+ gcc_cv_gnu_make=yes
+ ;;
+ *)
+ gcc_cv_gnu_make=no
+ ;;
+ esac])
+ if test "$gcc_cv_gnu_make" = "yes" ; then
+ if test -f Makefile; then
+ tmpmakefile=Makefile.$$
+ sed -e "s/^LINK = \\$/LINK = +$/" Makefile > $tmpmakefile
+ mv $tmpmakefile Makefile
+ else
+ AC_MSG_ERROR([Makefile doesn't exist])
+ fi
+ fi])
diff --git a/gas/aclocal.m4 b/gas/aclocal.m4
index cd39ba4..2df621f 100644
--- a/gas/aclocal.m4
+++ b/gas/aclocal.m4
@@ -993,6 +993,7 @@ m4_include([../bfd/acinclude.m4])
m4_include([../bfd/warning.m4])
m4_include([../config/depstand.m4])
m4_include([../config/gettext-sister.m4])
+m4_include([../config/gnumake.m4])
m4_include([../config/largefile.m4])
m4_include([../config/lead-dot.m4])
m4_include([../config/nls.m4])
diff --git a/gas/configure b/gas/configure
index d5431f2..e3fd7f1 100755
--- a/gas/configure
+++ b/gas/configure
@@ -16664,3 +16664,32 @@ if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
fi
+
+
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether make is GNU make" >&5
+$as_echo_n "checking whether make is GNU make... " >&6; }
+if test "${gcc_cv_gnu_make+set}" = set; then :
+ $as_echo_n "(cached) " >&6
+else
+
+ GNU_MAKE=${MAKE-make}
+ case `$GNU_MAKE -v 2>&1` in
+ *GNU*Make*)
+ gcc_cv_gnu_make=yes
+ ;;
+ *)
+ gcc_cv_gnu_make=no
+ ;;
+ esac
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_gnu_make" >&5
+$as_echo "$gcc_cv_gnu_make" >&6; }
+ if test "$gcc_cv_gnu_make" = "yes" ; then
+ if test -f Makefile; then
+ tmpmakefile=Makefile.$$
+ sed -e "s/^LINK = \\$/LINK = +$/" Makefile > $tmpmakefile
+ mv $tmpmakefile Makefile
+ else
+ as_fn_error "Makefile doesn't exist" "$LINENO" 5
+ fi
+ fi
diff --git a/gas/configure.in b/gas/configure.in
index c11d1df..477cde4 100644
--- a/gas/configure.in
+++ b/gas/configure.in
@@ -759,3 +759,5 @@ AC_CONFIG_COMMANDS([default],
te_file=${te_file}])
AC_OUTPUT
+
+GCC_CHECK_GNU_MAKE
diff --git a/gold/aclocal.m4 b/gold/aclocal.m4
index ded4d60..e460550 100644
--- a/gold/aclocal.m4
+++ b/gold/aclocal.m4
@@ -980,11 +980,12 @@ AC_SUBST([am__tar])
AC_SUBST([am__untar])
]) # _AM_PROG_TAR
+m4_include([../bfd/warning.m4])
m4_include([../config/depstand.m4])
m4_include([../config/gettext-sister.m4])
+m4_include([../config/gnumake.m4])
m4_include([../config/lead-dot.m4])
m4_include([../config/nls.m4])
m4_include([../config/override.m4])
m4_include([../config/po.m4])
m4_include([../config/progtest.m4])
-m4_include([../bfd/warning.m4])
diff --git a/gold/configure b/gold/configure
index c759b77..b67c54b 100755
--- a/gold/configure
+++ b/gold/configure
@@ -8716,3 +8716,32 @@ if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
fi
+
+
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether make is GNU make" >&5
+$as_echo_n "checking whether make is GNU make... " >&6; }
+if test "${gcc_cv_gnu_make+set}" = set; then :
+ $as_echo_n "(cached) " >&6
+else
+
+ GNU_MAKE=${MAKE-make}
+ case `$GNU_MAKE -v 2>&1` in
+ *GNU*Make*)
+ gcc_cv_gnu_make=yes
+ ;;
+ *)
+ gcc_cv_gnu_make=no
+ ;;
+ esac
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_gnu_make" >&5
+$as_echo "$gcc_cv_gnu_make" >&6; }
+ if test "$gcc_cv_gnu_make" = "yes" ; then
+ if test -f Makefile; then
+ tmpmakefile=Makefile.$$
+ sed -e "s/^LINK = \\$/LINK = +$/" Makefile > $tmpmakefile
+ mv $tmpmakefile Makefile
+ else
+ as_fn_error "Makefile doesn't exist" "$LINENO" 5
+ fi
+ fi
diff --git a/gold/configure.ac b/gold/configure.ac
index 2c50d97..3c66749 100644
--- a/gold/configure.ac
+++ b/gold/configure.ac
@@ -459,3 +459,5 @@ AC_LANG_POP(C++)
AM_MAINTAINER_MODE
AC_OUTPUT(Makefile testsuite/Makefile po/Makefile.in:po/Make-in)
+
+GCC_CHECK_GNU_MAKE
diff --git a/gprof/aclocal.m4 b/gprof/aclocal.m4
index d2aadb2..cef514b 100644
--- a/gprof/aclocal.m4
+++ b/gprof/aclocal.m4
@@ -971,6 +971,7 @@ AC_SUBST([am__untar])
m4_include([../bfd/warning.m4])
m4_include([../config/depstand.m4])
m4_include([../config/gettext-sister.m4])
+m4_include([../config/gnumake.m4])
m4_include([../config/largefile.m4])
m4_include([../config/lead-dot.m4])
m4_include([../config/nls.m4])
diff --git a/gprof/configure b/gprof/configure
index fd4544a..7ca0d99 100755
--- a/gprof/configure
+++ b/gprof/configure
@@ -14522,3 +14522,32 @@ if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
fi
+
+
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether make is GNU make" >&5
+$as_echo_n "checking whether make is GNU make... " >&6; }
+if test "${gcc_cv_gnu_make+set}" = set; then :
+ $as_echo_n "(cached) " >&6
+else
+
+ GNU_MAKE=${MAKE-make}
+ case `$GNU_MAKE -v 2>&1` in
+ *GNU*Make*)
+ gcc_cv_gnu_make=yes
+ ;;
+ *)
+ gcc_cv_gnu_make=no
+ ;;
+ esac
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_gnu_make" >&5
+$as_echo "$gcc_cv_gnu_make" >&6; }
+ if test "$gcc_cv_gnu_make" = "yes" ; then
+ if test -f Makefile; then
+ tmpmakefile=Makefile.$$
+ sed -e "s/^LINK = \\$/LINK = +$/" Makefile > $tmpmakefile
+ mv $tmpmakefile Makefile
+ else
+ as_fn_error "Makefile doesn't exist" "$LINENO" 5
+ fi
+ fi
diff --git a/gprof/configure.in b/gprof/configure.in
index 142f4cd..b77eea4 100644
--- a/gprof/configure.in
+++ b/gprof/configure.in
@@ -60,3 +60,5 @@ AC_SUBST(pdfdir)
AC_CONFIG_FILES([Makefile po/Makefile.in:po/Make-in])
AC_OUTPUT
+
+GCC_CHECK_GNU_MAKE
diff --git a/ld/aclocal.m4 b/ld/aclocal.m4
index 2f88266..e05de67 100644
--- a/ld/aclocal.m4
+++ b/ld/aclocal.m4
@@ -994,6 +994,7 @@ m4_include([../bfd/warning.m4])
m4_include([../config/acx.m4])
m4_include([../config/depstand.m4])
m4_include([../config/gettext-sister.m4])
+m4_include([../config/gnumake.m4])
m4_include([../config/largefile.m4])
m4_include([../config/lead-dot.m4])
m4_include([../config/nls.m4])
diff --git a/ld/configure b/ld/configure
index 088c721..1f75410 100755
--- a/ld/configure
+++ b/ld/configure
@@ -15804,3 +15804,32 @@ if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
fi
+
+
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether make is GNU make" >&5
+$as_echo_n "checking whether make is GNU make... " >&6; }
+if test "${gcc_cv_gnu_make+set}" = set; then :
+ $as_echo_n "(cached) " >&6
+else
+
+ GNU_MAKE=${MAKE-make}
+ case `$GNU_MAKE -v 2>&1` in
+ *GNU*Make*)
+ gcc_cv_gnu_make=yes
+ ;;
+ *)
+ gcc_cv_gnu_make=no
+ ;;
+ esac
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_gnu_make" >&5
+$as_echo "$gcc_cv_gnu_make" >&6; }
+ if test "$gcc_cv_gnu_make" = "yes" ; then
+ if test -f Makefile; then
+ tmpmakefile=Makefile.$$
+ sed -e "s/^LINK = \\$/LINK = +$/" Makefile > $tmpmakefile
+ mv $tmpmakefile Makefile
+ else
+ as_fn_error "Makefile doesn't exist" "$LINENO" 5
+ fi
+ fi
diff --git a/ld/configure.in b/ld/configure.in
index 85fe903..afb4225 100644
--- a/ld/configure.in
+++ b/ld/configure.in
@@ -349,3 +349,5 @@ AC_SUBST(pdfdir)
AC_CONFIG_FILES(Makefile po/Makefile.in:po/Make-in)
AC_OUTPUT
+
+GCC_CHECK_GNU_MAKE
diff --git a/opcodes/aclocal.m4 b/opcodes/aclocal.m4
index df10cc0..ebaa0af 100644
--- a/opcodes/aclocal.m4
+++ b/opcodes/aclocal.m4
@@ -973,6 +973,7 @@ m4_include([../bfd/warning.m4])
m4_include([../config/acx.m4])
m4_include([../config/depstand.m4])
m4_include([../config/gettext-sister.m4])
+m4_include([../config/gnumake.m4])
m4_include([../config/lead-dot.m4])
m4_include([../config/nls.m4])
m4_include([../config/override.m4])
diff --git a/opcodes/configure b/opcodes/configure
index fe7c01e..b2cab38 100755
--- a/opcodes/configure
+++ b/opcodes/configure
@@ -14991,3 +14991,32 @@ if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
fi
+
+
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether make is GNU make" >&5
+$as_echo_n "checking whether make is GNU make... " >&6; }
+if test "${gcc_cv_gnu_make+set}" = set; then :
+ $as_echo_n "(cached) " >&6
+else
+
+ GNU_MAKE=${MAKE-make}
+ case `$GNU_MAKE -v 2>&1` in
+ *GNU*Make*)
+ gcc_cv_gnu_make=yes
+ ;;
+ *)
+ gcc_cv_gnu_make=no
+ ;;
+ esac
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_gnu_make" >&5
+$as_echo "$gcc_cv_gnu_make" >&6; }
+ if test "$gcc_cv_gnu_make" = "yes" ; then
+ if test -f Makefile; then
+ tmpmakefile=Makefile.$$
+ sed -e "s/^LINK = \\$/LINK = +$/" Makefile > $tmpmakefile
+ mv $tmpmakefile Makefile
+ else
+ as_fn_error "Makefile doesn't exist" "$LINENO" 5
+ fi
+ fi
diff --git a/opcodes/configure.in b/opcodes/configure.in
index 0518781..1af03f5 100644
--- a/opcodes/configure.in
+++ b/opcodes/configure.in
@@ -349,3 +349,5 @@ AC_SUBST(BFD_MACHINES)
AC_CONFIG_FILES([Makefile po/Makefile.in:po/Make-in])
AC_OUTPUT
+
+GCC_CHECK_GNU_MAKE
More information about the Binutils
mailing list