--- /dev/null
+#!/bin/sh -e
+## 208-hjl-libtool-relink.dpatch
+##
+## DP: Description: Avoid unnecessary linker messages when running "make check"
+## DP: Author: H.J. Lu <hongjiu.lu@intel.com>
+## DP: Upstream status: hjl 2.17.50.0.13
+## DP: Original patch: libtool-relink-1.patch
+
+if [ $# -ne 1 ]; then
+ echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
+ exit 1
+fi
+
+[ -f debian/patches/00patch-opts ] && . debian/patches/00patch-opts
+patch_opts="${patch_opts:--f --no-backup-if-mismatch}"
+
+case "$1" in
+ -patch) patch $patch_opts -p1 < $0;;
+ -unpatch) patch $patch_opts -p1 -R < $0;;
+ *)
+ echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
+ exit 1;;
+esac
+
+exit 0
+
+2006-09-18 H.J. Lu <hjl@gnu.org>
+
+ * ltmain.sh (relink_command): Redirect all messages to
+ /dev/null to avoid unecessary linker messages for "make check".
+
+@DPATCH@
+--- ./ltmain.sh.patch 2006-09-18 10:07:59.000000000 -0700
++++ ./ltmain.sh 2006-09-18 10:49:50.000000000 -0700
+@@ -3990,7 +3997,7 @@ sed_quote_subst='$sed_quote_subst'
+ # if CDPATH is set.
+ if test \"\${CDPATH+set}\" = set; then CDPATH=:; export CDPATH; fi
+
+-relink_command=\"$relink_command\"
++relink_command=\"$relink_command > /dev/null 2>&1\"
+
+ # This environment variable determines our operation mode.
+ if test \"\$libtool_install_magic\" = \"$magic\"; then