0014-Support-llvm-objdump-f-output.patch 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. From 03dabb6a70847761e65572a2a7b770a3b1b9f123 Mon Sep 17 00:00:00 2001
  2. From: =?UTF-8?q?Mateusz=20Miku=C5=82a?= <mati865@gmail.com>
  3. Date: Mon, 12 Apr 2021 23:44:10 +0200
  4. Subject: [PATCH] Support llvm-objdump -f output
  5. ---
  6. build-aux/ltmain.in | 2 +-
  7. m4/libtool.m4 | 2 +-
  8. 2 files changed, 2 insertions(+), 2 deletions(-)
  9. diff --git a/build-aux/ltmain.in b/build-aux/ltmain.in
  10. index a9f070a..4a434cc 100644
  11. --- a/build-aux/ltmain.in
  12. +++ b/build-aux/ltmain.in
  13. @@ -3019,7 +3019,7 @@ func_win32_libid ()
  14. *ar\ archive*) # could be an import, or static
  15. # Keep the egrep pattern in sync with the one in _LT_CHECK_MAGIC_METHOD.
  16. if eval $OBJDUMP -f $1 | $SED -e '10q' 2>/dev/null |
  17. - $EGREP 'file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' >/dev/null; then
  18. + $EGREP 'file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64|coff-arm|coff-arm64|coff-i386|coff-x86-64)' >/dev/null; then
  19. case $nm_interface in
  20. "MS dumpbin")
  21. if func_cygming_ms_implib_p "$1" ||
  22. diff --git a/m4/libtool.m4 b/m4/libtool.m4
  23. index 21a7d60..594be9c 100644
  24. --- a/m4/libtool.m4
  25. +++ b/m4/libtool.m4
  26. @@ -3473,7 +3473,7 @@ mingw* | pw32*)
  27. lt_cv_file_magic_cmd='func_win32_libid'
  28. else
  29. # Keep this pattern in sync with the one in func_win32_libid.
  30. - lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  31. + lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64|coff-arm|coff-arm64|coff-i386|coff-x86-64)'
  32. lt_cv_file_magic_cmd='$OBJDUMP -f'
  33. fi
  34. ;;
  35. --
  36. 2.31.1