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=AjTMyf3hSta+zFFT Dkvyncti1dhwZ1ZxDLO2w3KiI/CcDi0xlOcSoX4Ydo0UJ2lcT45QWMjFVp8MvCQG sedsZP+I5won0Vbz5Q+xkoYFFEPfyTNdOnnjQr58MWFvTPHc9kNLIpmPOsIaXw7c xTEuFITg4aulMFMr2lTsS16LT7E= 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=a0cpEfjavFaCHtLmdaFeGv WiJEI=; b=V/GNM1xKarjNvll0zniW9bTIjcDfKYFQ6DcbStUGueMljl+D67kUZj fkxvv0HJOZ1RkLv51HL34wTSvMPAvzGnWzUMInH8GWaeh+Evc1kiyRmCSnRyeCje zmMLqKaLNfn5oVIiORVZPs93t9BE99eNB09425okUD9+otkkJTlvM= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , 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.4 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,RCVD_IN_SORBS_SPAM,SPF_PASS autolearn=no version=3.3.2 spammy=kaz, Kylheku, kylheku, Kaz X-HELO: mail-it0-f48.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=tWI5h5np7CAosSE93/6jLE1eX4F499Ci7Q+n1hBuXtE=; b=DgcpYUWAnIs2odHzgwHh+ubvmqrm8W6BXGhBvSnWqAz4SZKxuotiJA+G0+O4B7YG/q HiJKdrjab7RPLF1cOCMaJ2Et3bQDCBSvQmQa1q9MHMyK14F34o5e7pMexXyDWVl3crhu W1svvQ2PvXjtlTbHghlNxYxKpKRv+FpBxJ9SN6j/niir/XNQAbxt0IHCH3MHcjZE6Pwx phH7kHldgzjq0UtD5AtFa+eH8h27LLpP5YfKfV+JO1vS8iKwD0ZypcuI4qnAN9wOLAdR PfJE6ZAzZA0VZC0FlOstDHVKvRPSOO0BzQ7w0yPe6CVLA8LAp4q1Jtd32ZkTUcQ8AikA 135Q== X-Gm-Message-State: AIVw112Dwe4kjHltyAYMeJ36l4oK92J8zoWS/so2PJyJO0Tf3R1dmIIW myVH/eujOsfQNI4j X-Received: by 10.36.31.129 with SMTP id d123mr17615741itd.5.1499784191136; Tue, 11 Jul 2017 07:43:11 -0700 (PDT) Subject: Re: distinguishing cygwin from mingw binaries To: cygwin AT cygwin DOT com References: From: cyg Simple Message-ID: <6cac6454-4378-9043-bdb6-5ed85cd2004c@gmail.com> Date: Tue, 11 Jul 2017 10:43:10 -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: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-IsSubscribed: yes On 7/10/2017 2:00 PM, Kaz Kylheku wrote: > On 10.07.2017 10:40, 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. > > There is always the technique of actually packaging the program > deliverables > and then testing them, beginning with installation, if you were the > 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 paths > and other things. > > http://www.kylheku.com/cygnal/ > > With this, you make your executable with the regular Cygwin host 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/ CAUTION: This requires you provide the entire source set of Cygnal since it is actually Cygwin which has the GPL license applied to it. You might as well package Cygwin1.dll itself. -- 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