This is the mail archive of the
cygwin-patches
mailing list for the Cygwin project.
Re: [PATCH 5/5] Add with-only-headers
- From: Peter Foley <pefoley2 at pefoley dot com>
- To: cygwin-patches at cygwin dot com
- Date: Mon, 21 Mar 2016 15:59:26 -0400
- Subject: Re: [PATCH 5/5] Add with-only-headers
- Authentication-results: sourceware.org; auth=none
- References: <1458580546-14484-1-git-send-email-pefoley2 at pefoley dot com> <1458580546-14484-5-git-send-email-pefoley2 at pefoley dot com> <20160321194758 dot GH14892 at calimero dot vinschen dot de>
On Mon, Mar 21, 2016 at 3:47 PM, Corinna Vinschen
<corinna-cygwin@cygwin.com> wrote:
> On Mar 21 13:15, Peter Foley wrote:
>> When cross-compiling a toolchan targeting cygwin, building cygwin1.dll
>> requires libstdc++v3 to be built.
>
> Building cygwin1.dll doesn't require libstdc++-v3. The Cygwin DLL is
> never linked against it and never will be. Only building the utils dir
> requires libstdc++ and that would be fixed by not builing utils as in
> your other patch, wouldn't it?
Sorry for being unclear.
Building cygwin1.dll requires the *headers* from libstdc++-v3.
To run configure-target-libstdc++-v3 (which generates necessary headers
and is a prereq for install-target-libstdc++-v3 which installs those headers),
libgcc must be able to compile. For libgcc to compile, the cygwin headers
must be available.
To summarize, configure-target-libstdc++-v3 depends on all-target-libgcc.
And all-target-libgcc requires the headers from cygwin to be installed.
Hopefully that makes more sense.
Thanks,
Peter