This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] add proper paths to FLAGS_FOR_TARGET for *-w64-mingw*


2009/11/5 Ozkan Sezer <sezeroz@gmail.com>:
> Hello:
>
> The recent removal of winsup & co. for *-w64-mingw* and x86_64-*mingw*
> (http://gcc.gnu.org/viewcvs?view=revision&sortby=date&revision=153761)
> broke compilation of native gcc versions using cross toolchains, because
> the build system cannot find the necessary headers:
>
> x86_64-w64-mingw32-c++ ? ? -x c++-header -g -O2
> -I/home/sezero/153795-src/build-gcc/x86_64-w64-mingw32/libstdc++-v3/include/x86_64-w64-mingw32
> -I/home/sezero/153795-src/build-gcc/x86_64-w64-mingw32/libstdc++-v3/include
> -I/home/sezero/153795-src/gcc45-svn/libstdc++-v3/libsupc++ -O2 -g
> /home/sezero/153795-src/gcc45-svn/libstdc++-v3/include/precompiled/stdc++.h
> -o x86_64-w64-mingw32/bits/stdc++.h.gch/O2g.gch
> In file included from
> /home/sezero/153795-src/build-gcc/x86_64-w64-mingw32/libstdc++-v3/include/fenv.h:50:0,
> ? ? ? ? ? ? ? ?from
> /home/sezero/153795-src/build-gcc/x86_64-w64-mingw32/libstdc++-v3/include/cfenv:44,
> ? ? ? ? ? ? ? ?from
> /home/sezero/153795-src/gcc45-svn/libstdc++-v3/include/precompiled/stdc++.h:54:
> /home/sezero/153795-src/build-gcc/x86_64-w64-mingw32/libstdc++-v3/include/tr1_impl/cfenv:49:11:
> error: '::fenv_t' has not been declared
> [snip]
>
> We used to overcome that problem by creating a symlink named winsup in the
> gcc source directory pointing to the ${prefix}, but now that it is gone, it
> is necessary to provide gcc configury with proper header path for mingw-w64.
> The attached patch does that, and also cleans up some trailing whitespace
> in a few places. Tested by compiling a native x86_64-w64-mingw32 gcc by on
> i686-linux. Please review and apply if OK. [I don't have svn write access.]
>
> --
> Ozkan
>
> 2009-11-05 ?Ozkan Sezer ?<sezeroz@gmail.com>
>
> ? ? ? ?* configure.ac (FLAGS_FOR_TARGET): ?Add -L and -isystem
> ? ? ? ?paths for *-w64-mingw* and x86_64-*mingw*.
> ? ? ? ?* configure: Regenerated.
>

This patch looks fine to me. I'll apply it to trunk soon.

Thanks,
Kai

-- 
|  (\_/) This is Bunny. Copy and paste
| (='.'=) Bunny into your signature to help
| (")_(") him gain world domination


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]