From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mout.kundenserver.de (mout.kundenserver.de [212.227.126.130]) by sourceware.org (Postfix) with ESMTPS id E653C385703F for ; Tue, 13 Oct 2020 10:30:11 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org E653C385703F Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=cygwin.com Authentication-Results: sourceware.org; spf=fail smtp.mailfrom=corinna-cygwin@cygwin.com Received: from calimero.vinschen.de ([24.134.7.25]) by mrelayeu.kundenserver.de (mreue010 [212.227.15.167]) with ESMTPSA (Nemesis) id 1MQdpG-1knp7k1PKY-00Nljk for ; Tue, 13 Oct 2020 12:30:10 +0200 Received: by calimero.vinschen.de (Postfix, from userid 500) id DB924A845AD; Tue, 13 Oct 2020 12:30:09 +0200 (CEST) Date: Tue, 13 Oct 2020 12:30:09 +0200 From: Corinna Vinschen To: cygwin-developers@cygwin.com Subject: Re: Build spends a long time in "mkimport". Message-ID: <20201013103009.GD26704@calimero.vinschen.de> Reply-To: cygwin-developers@cygwin.com Mail-Followup-To: cygwin-developers@cygwin.com References: <19ee7db1-5f95-8ecc-4cdc-9c542cdb9e53@dronecode.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <19ee7db1-5f95-8ecc-4cdc-9c542cdb9e53@dronecode.org.uk> X-Provags-ID: V03:K1:1gyLQDUjFyZzeH2+TQsDbuBskmCGIVtNpySP5kabXqlFGOtDlad GnvqO0Ak4/KWmVmym2Yq4QcQS+6QD+M4/xwEdLvKoRCrhD+PKeXjstVixvT863/iq298jfi 2zrsRUygSpI6VNtKOicHuAsyIlUMN0nqxhSrSCeC3AJ7ZG/ACIGI76n94a8HRgn3CXOnhK4 skNeHXjofL9H0xKoy/4Gw== X-UI-Out-Filterresults: notjunk:1;V03:K0:v/w6EpYBQEY=:0P9Z0iSJSJExVFHUjqTF57 CAGpWJ00lP4i3dowSq+wsTKwkUXGIiVDaBeXUp6h52LMcXa/gicOSC9vkrL1H4Yo2N7z18mn6 vJLU3fyuYK/MoA7qPZpW6ueYe2HIcLpDRIDXJouxSOqlQCcIk66QxiCUAZWycxa6uOFhJ81Xm KUxIcSu2E7bPF6WfyCoXz0dqu4yO788+dRhL8ZuSFCDs4De7f0s/UKfm/9+NzUTCr0Iq/oNTk UTFWZWTnG6NUmQwIgVA3D38g+qx2JHBStEeEojmpBENecSTb0IYITITkBTr91x7mpYiJhpmfm GU8K4JnMxImfMbDkZ7zo9RYKsk9AZkPQzVWV5MB7DX+bvaRlnwoW3kN+hRoqEIHDrQ5a2cBmu YoSQGhWz0ifbyClYAUX3H6DLHTkx+G5OHNHN8Y1rDVkTWQlUDEYio5aKcD72fcqNdonW4s68f 86L/o41ZKQ== X-Spam-Status: No, score=-100.1 required=5.0 tests=BAYES_00, GOOD_FROM_CORINNA_CYGWIN, JMQ_SPF_NEUTRAL, KAM_DMARC_STATUS, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_NONE, SPF_NEUTRAL, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: cygwin-developers@cygwin.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Cygwin core component developers mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Oct 2020 10:30:13 -0000 On Oct 11 18:14, Jon Turney wrote: > What I think mkimport is doing: This produces the import library for the > Cygwin DLL, which is actually a 'hybrid' library. Mainly it consists of > import stubs for functions in the DLL (some of which are renamed by > --replace options), but it also contains some specific object files directly > (this is stuff called by crt0.o, but idk why it's can't be in the DLL). Some stuff must be statically linked into the executable to work. For instance, see the stuff lib/_cygwin_crt0_common.cc sets up so it will be available when calling into the DLL the first time. Another heck of an example is lib/atexit.c with really detailed comments in lib/atexit.c and dcrt0.cc. Corinna