delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2017/07/11/10:38:07

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:subject:to:references:from:message-id:date
:mime-version:in-reply-to:content-type
:content-transfer-encoding; q=dns; s=default; b=ZwQRX7TuVdLU41RZ
GCZM0Mqke158jIDVuhHP66YGWwMG3nDVUsn2KkTprNCLdVBF/dxZCRAaNdL+21nU
epMjdY9plvxZZ+yDrmqmkZA3t7OiTeTKF8JvOAE8lx6z1Y/G2JU3cCf0gP4Z8tdS
T+vv1AGoBjRauPphNT9mtGQCrVg=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:subject:to:references:from:message-id:date
:mime-version:in-reply-to:content-type
:content-transfer-encoding; s=default; bh=ZZ2jpSeRrzw2+9hXdON3Ry
HLxJQ=; b=S/boOD8hcSnk0RLWed2ony15s/qWGC6Qbo5aOUJXfqMO6/rj5Y7MpU
CCpphiHOX4X0FFLfJPhfbqBmaFF1XhKq3w3CEYBPDQtT21rgLBmAyIg+tnpxvIMC
YsUKnV/IJeL5MiZlw8zqY0WYdDozFE+z18TLVNomdz9fmL+txweuU=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-2.1 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,RCVD_IN_SORBS_SPAM,SPF_PASS autolearn=ham version=3.3.2 spammy=personal, HContent-Transfer-Encoding:8bit
X-HELO: mail-it0-f50.google.com
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=UOcWvybDbfvr6nZfP1uJiszIEK7ifdMCUiBGClYA3Pg=; b=jNLgsSlOgU9zMJkNeJ48i5o88Gx/Ogmw1JSdx3qMaFlzegn06OMuyqCEv3vSv160qK G7jYP2lGfh7bzmYyll4FclK/hdkWsw0XmNnXOfAp88ai4sevske316aMrF9ftarMt/EQ d1y2WZY1yp9HdBhPFDmHjmuYSlLJlKoLeQq7GOiGT0Vc6S/UFj2Wa2W5LFsCNWWQuxOl 621FIdl77WxRIoR5S6BZgbUMuChXFQeDFbYg0b3xrbWt6YVIEx/zNm2u7pfTg90Api3K /m6+GiRNf55GaXJ06FsJ+uT4Mu+Ig/46pNQKfu/4VdlQhG2W5epdpJFk6GsBgG2KKMWG Oe5g==
X-Gm-Message-State: AIVw1123R/Dzt3i2jqxRRWxWAGQdVGsRxTloPuVfiz40QdCO6wz6V7e1 zZqR5K6VvK+83No6
X-Received: by 10.36.112.82 with SMTP id f79mr16985004itc.65.1499783869550; Tue, 11 Jul 2017 07:37:49 -0700 (PDT)
Subject: Re: distinguishing cygwin from mingw binaries
To: cygwin AT cygwin DOT com
References: <BN6PR2001MB1074F351B65B71F7B8B41143F1A90 AT BN6PR2001MB1074 DOT namprd20 DOT prod DOT outlook DOT com>
From: cyg Simple <cygsimple AT gmail DOT com>
Message-ID: <728bfde3-3608-3a81-131e-f012aaa6cdce@gmail.com>
Date: Tue, 11 Jul 2017 10:37:48 -0400
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1
MIME-Version: 1.0
In-Reply-To: <BN6PR2001MB1074F351B65B71F7B8B41143F1A90@BN6PR2001MB1074.namprd20.prod.outlook.com>
X-IsSubscribed: yes

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.

-- 
cyg Simple

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019