From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25368 invoked by alias); 10 Jul 2017 18:01:00 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 25333 invoked by uid 89); 10 Jul 2017 18:00:59 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FROM_STARTS_WITH_NUMS,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 spammy=stock, shipping, personal, delivering X-HELO: smtp-out-so.shaw.ca Received: from smtp-out-so.shaw.ca (HELO smtp-out-so.shaw.ca) (64.59.136.137) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 10 Jul 2017 18:00:58 +0000 Received: from kylheku.com ([70.79.163.252]) by shaw.ca with SMTP id UczHd1Go9MaqMUczQdAtQT; Mon, 10 Jul 2017 12:00:56 -0600 X-Authority-Analysis: v=2.2 cv=Qc8WhoTv c=1 sm=1 tr=0 a=95A0EdhkF1LMGt25d7h1IQ==:117 a=95A0EdhkF1LMGt25d7h1IQ==:17 a=IkcTkHD0fZMA:10 a=SMorJkV_YP8A:10 a=G3gG6ho9WtcA:10 a=2KUf1mbJAAAA:8 a=NaM-9we5AAAA:8 a=B0cxEex319ZqzXFBRdcA:9 a=QEXdDO2ut3YA:10 a=LME9DoRMzU6P72L8X6EC:22 a=KQxfyNE6DlFdbrDZV3aZ:22 Received: from www-data by kylheku.com with local (Exim 4.72) (envelope-from <920-082-4242@kylheku.com>) id 1dUczH-0004Tu-2N for cygwin@cygwin.com; Mon, 10 Jul 2017 11:00:47 -0700 To: cygwin@cygwin.com Subject: Re: distinguishing cygwin from mingw binaries X-PHP-Originating-Script: 501:rcmail.php MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable Date: Mon, 10 Jul 2017 18:01:00 -0000 From: Kaz Kylheku <920-082-4242@kylheku.com> Message-ID: X-Sender: 920-082-4242@kylheku.com User-Agent: Roundcube Webmail/0.9.2 X-CMAE-Envelope: MS4wfIc8cUY40RprBxcqIPz9YAMfP6ShKGeeALORL1usxAs8pK7AP/84PhhsK4xlkqHHioXQYj0X5eJDvyrOf9VovbK0qedyr+Vlj2BRJJTghKIjmUR7bxl+ xWQkZAGwvwbTjFK2iluDCELN1+qpULe7QBIItIkcUrj9kEiHZHtApRkL X-IsSubscribed: yes X-SW-Source: 2017-07/txt/msg00142.txt.bz2 On 10.07.2017 10:40, Nellis, Kenneth wrote: > For my personal use, I use gcc to generate binaries, but occasionally I=20 > need > to make a binary available to someone who doesn't use Cygwin. For that=20 > I use > Cygwin's x86_64-w64-mingw32-gcc. >=20 > After the fact, I would like to know whether the binary requires Cygwin=20 > support > or not. One way is: strings foo.exe | grep cygwin1.dll >=20 > Curious what techniques others might use. There is always the technique of actually packaging the program=20 deliverables and then testing them, beginning with installation, if you were the=20 end-user. If the program doesn't run when installed by itself in C:\Program Files somewhere, then it might be missing DLLs. I use a special fork of Cygwin called Cygnal for delivering programs to users who don't use Cygwin and don't understand POSIX conventions for=20 paths and other things. http://www.kylheku.com/cygnal/ With this, you make your executable with the regular Cygwin host=20 compiler. Yes, you know your executable needs a CYGWIN1.DLL (and possibly others); no guesswork. You package the needed DLL's with the program. Except, you use the CYGWIN1.DLL from the Cygnal project rather than the stock Cygwin one. Example software shipping with Cygnal is the port of the TXR language to Win32 and Win64. Installers available here: https://bintray.com/kazinator/Binaries/TXR/ -- 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