From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 121104 invoked by alias); 30 May 2019 02:51:36 -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 120969 invoked by uid 89); 30 May 2019 02:51:33 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-1.6 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_HELO_PASS,SPF_PASS autolearn=ham version=3.3.1 spammy=H*c:sk:HMHPRHH, H*c:alternative, H*c:HHH X-HELO: EUR02-AM5-obe.outbound.protection.outlook.com Received: from mail-oln040092067036.outbound.protection.outlook.com (HELO EUR02-AM5-obe.outbound.protection.outlook.com) (40.92.67.36) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 30 May 2019 02:51:30 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outlook.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=yKBBT1fdEyfuqJ/Z44TG/SQtzpdaW+8O9K35dgycscg=; b=mNYxiuz+wLQUwFOYxRUxkIrVbWD7nnIQ1FhkUBzsYNXug1euOOoX8X4cNGk6CT4BxZAQmQeia9KdheN/EKXuSDE7aPCyxdyPNGl/tTQ5NvMzxBJBQPEq/hyZ0n+w9pKA8mDmZAQU/JkliG1iyfMsjwNiJEACSM1ptuJkAgoTr+zrLR001l3zy1Ezvk2I/KQI6GrhbyfnV8EoaVXXL6BVrvGF7wr+aeKBbqsaUFrPdN9tib0v4tju+dmJrau9GqpuBT3YgwovcPE8bv0AZEi8HFsEEtTyUz5R0Ywx6+WQdjXOyPXtj6xXNbfG5LjBhOhDRINXk88yRQ2W9hJNczQN+g== Received: from VE1EUR02FT007.eop-EUR02.prod.protection.outlook.com (10.152.12.60) by VE1EUR02HT159.eop-EUR02.prod.protection.outlook.com (10.152.13.46) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.1922.16; Thu, 30 May 2019 02:51:28 +0000 Received: from AM0PR01MB5377.eurprd01.prod.exchangelabs.com (10.152.12.57) by VE1EUR02FT007.mail.protection.outlook.com (10.152.12.133) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.1922.16 via Frontend Transport; Thu, 30 May 2019 02:51:28 +0000 Received: from AM0PR01MB5377.eurprd01.prod.exchangelabs.com ([fe80::a818:3eaf:ca34:9c8c]) by AM0PR01MB5377.eurprd01.prod.exchangelabs.com ([fe80::a818:3eaf:ca34:9c8c%6]) with mapi id 15.20.1922.021; Thu, 30 May 2019 02:51:28 +0000 From: Jose Isaias Cabrera To: Tony Kelman , "cygwin@cygwin.com" Subject: Re: How to build a DLL without cygwin DLL dependencies Date: Thu, 30 May 2019 02:51:00 -0000 Message-ID: References: ,,, In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes X-SW-Source: 2019-05/txt/msg00255.txt.bz2 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=E9 -- 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