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:date:from:to:message-id:in-reply-to:references :subject:mime-version:content-type:content-transfer-encoding; q= dns; s=default; b=ate11xR+lP8/HZAJqYxpfdzZLugzHyWnW1lcglNB8pFfLq gzo7mR8AjBGLzOWmVMTOzpF2OVlCVgqkwCGLfDX4MkWN3Y/jY6K/kTgokA+H+NVl xtPCg0JLpHp73j1jv3xDN0i8W+jkAYfLP6tDHKjCsCnxDI5yiV7jHHavLlM24= 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:date:from:to:message-id:in-reply-to:references :subject:mime-version:content-type:content-transfer-encoding; s= default; bh=MNohnOxNXhZIGmZioHh9Mr/WSQM=; b=WpEPoG8Z4drJyAGD3flj GfwsHnKbpwoMPpjcJixgy/8GUpziK3jQJtfsImZlMh75l09l7DiNaaZz6k6WqBHm l5Ncan/EKqGN0W0kGr4ZrshJZj5N0ymLZx5Je5qoeSdR831RANq14gWQnZczRu9Q jVjQy3Y/zGFLE+jevrAjXxg= 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-Spam-SWARE-Status: No, score=-5.3 required=5.0 tests=AWL,BAYES_20,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,GIT_PATCH_2,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.1 spammy=H*M:yahoo, UD:jp, H*Ad:D*outlook.com, H*r:NNFMP X-HELO: nh504-vm5.bullet.mail.kks.yahoo.co.jp DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1559322067; s=yj20110701; d=yahoo.co.jp; h=Date:From:To:Message-ID:In-Reply-To:References:Subject:MIME-Version:Content-Type:Content-Transfer-Encoding; bh=rIHbnwQdhtTnuuV2ginVLx5D+hfStIqB3gfvGUlseUI=; b=CctuRwBhxy+ZKhuXJvnhq6qpxqev/GhRVlXS1VVZbxp0yOGdNyjMrO8da7yiQqW7 /gbuJx1hPu3mblim1rZZn8+kNV3uJTLQ7B+12kptcN22yOyCARrarhgm7aVpPjOUeTz JQgCmTsLOULFqh7MePOlSj79LrA7wDKdlGQONDuw= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=yj20110701; d=yahoo.co.jp; h=Date:From:Message-ID:In-Reply-To:References:MIME-Version:Content-Type:Content-Transfer-Encoding; b=YF8/nNG5Di9lvsBjG6wLLylzMTJCTl+n7ItOrGAJr0RkTmOg69ey4LJazHuJI9SC detN7rVTqLp+kgsyO5D6BVA6OeZ9y9bBElHE8zrtTzZL847KBNcu2ggXaGbDwv4lD/M +7neW2kPVe7qE6TL4fCixrXPE9rp/I44Wae0NfSE=; Date: Sat, 1 Jun 2019 02:01:06 +0900 (JST) From: Tatsuro MATSUOKA To: Jose Isaias Cabrera , Tony Kelman , "cygwin AT cygwin DOT com" Message-ID: <642211994.4254612.1559322066163.JavaMail.yahoo@jws705108.mail.ssk.yahoo.co.jp> In-Reply-To: References: Subject: Re: How to build a DLL without cygwin DLL dependencies MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-IsSubscribed: yes Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id x4VH1MpI011050 --- jicma wrote: > > Tony Kelman, on Wednesday, May 29, 2019 04:18 PM, wrote... > >and you can avoid the issue by building a 64 bit dll, or in 32 bit via > > > >i686-w64-mingw32-gcc -shared -static-libgcc sqlite3.c -o sqlite3.dll > > > > This is what I needed above. The command I was using, > > i686-w64-mingw32-gcc -shared sqlite3.c -o sqlite3.dll > > will create a DLL, but it will have dependencies on some cygwin libs. This command, > > i686-w64-mingw32-gcc -shared -static-libgcc sqlite3.c -o sqlite3.dll > > creates a DLL with no dependencies. So, the option -static-libgcc is what I needed. Thanks. > > To summarize, when creating SQLite3 DLL or building any SQLite3 tools with cygwin, > 1. Download the i686-w65-mingw32-gcc compiler with the setup tools (the 64 bit) > 2. Get the source from sqlite.org > 3. untar source > 4. cd to the source directory > 5. run this command: > i686-w64-mingw32-gcc -shared -static-libgcc sqlite3.c -o sqlite3.dll > > Thanks, > > josé > If you will have another opportunity to build natitve windows exe or dll, please consider to use msys2. Tatsuro -- 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