Open GitMensch opened 1 year ago
maybe make file calling objdump on the library that seems to have been one trick used in the old msys.org days. not so sure about how to force file to do it though ? any thoughts.
@Biswa96 Do you think it would be more reasonable to patch file.exe (seems to be quite complex, not sure if there's someone that would do that) or instead "replace" the installed file.exe by a wrapper script that manually inspects *.a
(or even *.dll.a
) files and pass the rest to the then-renamed file.exe (as per the original discussion)?
I did not understand the issue. Please wait for other to comment.
it should be possible to make some code for file.exe to determine the correct archive type in import archives by checking for _imp*symbol in the library (these should not exist in the static ones), it wont be foolprof but better than what is i reckon.
Originally posted by @revelator in https://github.com/msys2/MINGW-packages/discussions/8056#discussioncomment-6540994