delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2019/05/29/13:55:57

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:references
:in-reply-to:content-type:content-transfer-encoding
:mime-version; q=dns; s=default; b=SFL90IP1r8tznjELhVC5aHizKLySN
4VwSo1XYiNZVRPd3nEJUUEVkORWZZ6jy5LH8I5lxP/gBnBVFekCnu1lhEKxpNIuK
GvVEY1KlxXTmL+39MiM7QUygoUE2fey34oQyfmK5jWuXo/vfIxYrl6Vy9gm19iJ3
5th9jCRC8luoWc=
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:references
:in-reply-to:content-type:content-transfer-encoding
:mime-version; s=default; bh=MmUxmNXQ4mO5kfBNy1asjAiz0+c=; b=BLe
C8j3mhUOpZFkd5eNlabf4nfHm5dePGDT3NvRv851cuzA+cQ9olmbqseCBMbz2vVc
L6ZWW9M5FYKtXqqCVM/PEEJb3V947oixTpodFoe/vjxLt6cGeGL068V9kWHyq5OA
w8sSdEnzlJO5OQPsdC2xIUbUNU5Gzb0MxuBF8/9w=
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-Spam-SWARE-Status: No, score=-1.1 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE,SPF_HELO_PASS autolearn=ham version=3.3.1 spammy=H*Ad:D*outlook.com, HX-Languages-Length:856, UD:tar.xz, UD:xz
X-HELO: NAM04-SN1-obe.outbound.protection.outlook.com
From: Tony Kelman <tony AT kelman DOT net>
To: Jose Isaias Cabrera <jicman AT outlook DOT com>,
"cygwin AT cygwin DOT com" <cygwin AT cygwin DOT com>
Subject: Re: How to build a DLL without cygwin DLL dependencies
Date: Wed, 29 May 2019 17:55:42 +0000
Message-ID: <CY4PR22MB0773AD002D202CE1D084A227A71F0@CY4PR22MB0773.namprd22.prod.outlook.com>
References: <DB7PR01MB5386F8869A992304E8979E4DDE1F0 AT DB7PR01MB5386 DOT eurprd01 DOT prod DOT exchangelabs DOT com>
In-Reply-To: <DB7PR01MB5386F8869A992304E8979E4DDE1F0@DB7PR01MB5386.eurprd01.prod.exchangelabs.com>
x-ms-exchange-purlcount: 1
MIME-Version: 1.0
X-IsSubscribed: yes
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id x4THttB7012976

> I am trying to build the latest sqlite windows DLL, and I am
> succeeding, but I am getting an error that cygwin1.dll is missing,
> when I am trying to use the DLL from outside cygwin in the Windows
> environment.  I am using,
>
> gcc -shared sqlite3.c -o sqlite3.dll
>
> to build it, but this command creates a dependency for cygwin1.dll.
> Is there any way to build the dll as a standalone DLL with no
> dependency?  Thanks.

Yep, you want the mingw-w64 cross compiler, x86_64-w64-mingw32-gcc
(or i686-w64-mingw32-gcc for 32 bit). There's a cross-compiled sqlite
package already available under mingw64-x86_64-sqlite3 in setup - or
http://mirrors.kernel.org/sourceware/cygwin/noarch/release/mingw64-x86_64-sqlite3/mingw64-x86_64-sqlite3-3.19.3-1.tar.xz
if you're okay with that particular release.

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