[PATCH 2/3] Revert "libtool: fix nm test for MSYS/MinGW"

Nick Alcock <[email protected]> Mon, 19 Jul 2021 19:45:16 +0100
Newsgroups gmane.comp.gnu.libtool.patches
Message-ID <[email protected]>
This reverts commit 13aa364c0c66f9f6b41f98772d0735039ac974a1.

We fix it in a more general way in the next commit.

* m4/libtool.m4 (LT_PATH_NM): Revert special case for MSYS.

Signed-off-by: Nick Alcock <[email protected]>
---
 m4/libtool.m4 | 9 ++-------
 1 file changed, 2 insertions(+), 7 deletions(-)

diff --git a/m4/libtool.m4 b/m4/libtool.m4
index 2851b204..fea1a41a 100644
--- a/m4/libtool.m4
+++ b/m4/libtool.m4
@@ -3678,13 +3678,8 @@ else
 	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
 	#   nm: unknown option "B" ignored
 	# Tru64's nm complains that /dev/null is an invalid object file
-	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
-	case $build_os in
-	mingw*) lt_bad_file=conftest.nm/nofile ;;
-	*) lt_bad_file=/dev/null ;;
-	esac
-	case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
-	*$lt_bad_file* | *'Invalid file or object type'*)
+	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
+	*/dev/null* | *'Invalid file or object type'*)
 	  lt_cv_path_NM="$tmp_nm -B"
 	  break 2
 	  ;;
-- 
2.32.0.255.gd9b1d14a2a