This is the mail archive of the
cygwin-patches
mailing list for the Cygwin project.
Re: [PATCH 3/3] Use just-built gcc for windres
- From: Peter Foley <pefoley2 at pefoley dot com>
- To: cygwin-patches at cygwin dot com
- Date: Wed, 30 Mar 2016 09:08:35 -0400
- Subject: Re: [PATCH 3/3] Use just-built gcc for windres
- Authentication-results: sourceware.org; auth=none
- References: <1458740052-19618-1-git-send-email-pefoley2 at pefoley dot com> <1458740052-19618-3-git-send-email-pefoley2 at pefoley dot com> <20160330123108 dot GI3793 at calimero dot vinschen dot de>
On Wed, Mar 30, 2016 at 8:31 AM, Corinna Vinschen
<corinna-cygwin@cygwin.com> wrote:
> Are you sure this works as desired? In my standard cross build
> environment, the only -B option added here is
>
> --preprocessor-arg=-B/build/cygwin/x86_64/vanilla/x86_64-pc-cygwin/newlib/
The only case in which -B is needed at all is for an in-tree build.
That is, gcc and winsup are in the same source tree, so CC is set to
something like ./gcc/xgcc.
In that case, the -B is necessary so that gcc knows where to find the
cc1 binary.
If gcc and winsup are built from separate source trees, it isn't an issue.
Thanks,
Peter