Re: distinguishing cygwin from mingw binaries
- Date: Tue, 11 Jul 2017 10:37:48 -0400
- From: cyg Simple <cygsimple@xxxxxxxxx>
- Subject: Re: distinguishing cygwin from mingw binaries
On 7/10/2017 1:40 PM, Nellis, Kenneth wrote:
> For my personal use, I use gcc to generate binaries, but occasionally I need
> to make a binary available to someone who doesn't use Cygwin. For that I use
> Cygwin's x86_64-w64-mingw32-gcc.
> After the fact, I would like to know whether the binary requires Cygwin support
> or not. One way is: strings foo.exe | grep cygwin1.dll
> Curious what techniques others might use.
I would use a --prefix or whatever defines the install directories in
your cases to be something easily recognizable and install it. Then
execute a recursive grep on that folder.
grep -lir --binary-files=binary cygwin1.dll /my/install/dir
If a file is listed then you can decide what to do next.
Problem reports: http://cygwin.com/problems.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple