delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2017/07/10/13:40:51

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:from:to:subject:date:message-id:content-type
:content-transfer-encoding:mime-version; q=dns; s=default; b=U5d
WAdBUhXd6WzYbwPIZBGsy92Nu3YvpIDhIQRuuWl75iZw7NV0vulk7voVzmq2f+EZ
ugiKoMLom0N4ysymeTA39i7JtxIgj3uRMekgouVFi7LjW9kEPTNVzPACZ3Tbl521
5tkTuatBH9f+I9nv2XfAKW9HZLEOPOX3JPKimVvs=
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:from:to:subject:date:message-id:content-type
:content-transfer-encoding:mime-version; s=default; bh=4NxdaDv/x
neGXQFUt8XNyjkQW1w=; b=fqO29SarlRARm5/ucDUwTDag7HPnL6YEltdQgufcn
Ma29TcKlVu/0izRVmC5EPaFSSP1FHCS5GUhn0mbDyQ4peac0Pd4FautRv5B+n7Ef
V2XlBllVnhsYVq/Az6ye2zdrpiOpuJYcc84hNegYAs/Cz9VKAcFWXlt0pPM/HXda
Fw=
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=-1.9 required=5.0 tests=BAYES_00,SPF_PASS autolearn=ham version=3.3.2 spammy=wishes, personal
X-HELO: USA7109MR004.ACS-INC.COM
From: "Nellis, Kenneth" <Kenneth DOT Nellis AT conduent DOT com>
To: "cygwin AT cygwin DOT com" <cygwin AT cygwin DOT com>
Subject: distinguishing cygwin from mingw binaries
Date: Mon, 10 Jul 2017 17:40:31 +0000
Message-ID: <BN6PR2001MB1074F351B65B71F7B8B41143F1A90@BN6PR2001MB1074.namprd20.prod.outlook.com>
authentication-results: cygwin.com; dkim=none (message not signed) header.d=none;cygwin.com; dmarc=none action=none header.from=conduent.com;
x-ms-publictraffictype: Email
x-microsoft-exchange-diagnostics: 1;BN6PR2001MB1076;20:oKfCCxTct++uEXfWR3W+GywLFYmvbm3KMX27h88C2BsGBgBZFw7uqzJV53LWllo00TaEMJgTGlbklfIUY8B8y7gd14fgH9F9mP9dZCi3OWw0OdLUesJ9NL3hRyybF7yNuRtCXPXkB8CeSxUo614dV13MFv88l4kDC8xZGTa7pChpe9rpwPeUbvFqowKtrSZmP+GJX22MNcrwYUSytJ3LP6CX6Jd5EzQ8PbL7rZ2WrtJ/6CnO4S4iqogn0gctwpWc
x-ms-office365-filtering-correlation-id: 4ead3357-e1c3-4116-692b-08d4c7bac33e
x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(22001)(300000502095)(300135100095)(2017030254075)(300000503095)(300135400095)(2017052603031)(201703131423075)(201703031133081)(201702281549075)(300000504095)(300135200095)(300000505095)(300135600095)(300000506095)(300135500095);SRVR:BN6PR2001MB1076;
x-ms-traffictypediagnostic: BN6PR2001MB1076:
x-microsoft-antispam-prvs: <BN6PR2001MB10769CD12BBF71B077B6837AF1A90 AT BN6PR2001MB1076 DOT namprd20 DOT prod DOT outlook DOT com>
x-exchange-antispam-report-test: UriScan:(133145235818549)(236129657087228)(247924648384137);
x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(601004)(2401047)(2017060910075)(5005006)(8121501046)(3002001)(100000703101)(100105400095)(10201501046)(93006095)(93001095)(6041248)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123562025)(20161123564025)(20161123560025)(20161123558100)(20161123555025)(6072148)(100000704101)(100105200095)(100000705101)(100105500095);SRVR:BN6PR2001MB1076;BCL:0;PCL:0;RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095);SRVR:BN6PR2001MB1076;
x-forefront-prvs: 03648EFF89
x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(979002)(6009001)(39450400003)(39400400002)(39410400002)(39840400002)(39850400002)(2351001)(3280700002)(7736002)(7696004)(3846002)(5660300001)(3660700001)(9686003)(2501003)(6116002)(102836003)(189998001)(77096006)(6916009)(2900100001)(5640700003)(54356999)(25786009)(86362001)(50986999)(38730400002)(74316002)(33656002)(81156014)(81166006)(8936002)(6506006)(305945005)(66066001)(99286003)(6436002)(8676002)(2906002)(110136004)(1730700003)(55016002)(478600001)(72206003)(14454004)(53936002)(460985005)(969003)(989001)(999001)(1009001)(1019001);DIR:OUT;SFP:1101;SCL:1;SRVR:BN6PR2001MB1076;H:BN6PR2001MB1074.namprd20.prod.outlook.com;FPR:;SPF:None;MLV:ovrnspm;PTR:InfoNoRecords;LANG:en;
spamdiagnosticoutput: 1:99
spamdiagnosticmetadata: NSPM
MIME-Version: 1.0
X-MS-Exchange-CrossTenant-originalarrivaltime: 10 Jul 2017 17:40:31.6781 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 1aed4588-b8ce-43a8-a775-989538fd30d8
X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN6PR2001MB1076
X-OriginatorOrg: conduent.com
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id v6AHeoGO022064

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.

One of my wishes for Cygwin is for the "file" command to make the distinction.

--Ken Nellis

--
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