mingw-cross-env-list
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Mingw-cross-env-list] Trying to use x86_64-w64-mingw32.static-g++ -


From: Tony Theodore
Subject: Re: [Mingw-cross-env-list] Trying to use x86_64-w64-mingw32.static-g++ -fprofile-generate (inhibit_libc, bug 1665)
Date: Fri, 06 Apr 2018 13:56:44 +1000


> On 5 Apr 2018, at 01:04, Scott Douglass <address@hidden> wrote:
> 
> I wrote:
> >>
> I've built x86_64-w64-mingw32.static and I'm trying to use 
> x86_64-w64-mingw32.static-g++ -fprofile-generate and I get link errors:
> ...
> <<
> 
> I've found that the missing option is
>   make ... gcc_CONFIGURE_OPTS="... 
> --with-headers=$(pwd)/usr/$mxe_target/include"
> 
> With this I am able to cross-build an application using '-fprofile-generate'.
> 
> Should this be the default behaviour when MXE is building gcc?  Thanks.

Thanks for the investigation! Yes, coverage should be enabled by default,
though the `—with-headers` seems to be deprecated:

https://gcc.gnu.org/install/configure.html#Cross-Compiler-Specific-Options

and is somewhat annoying as it copies headers into a `sys-include` directory.

I’ll try to get `—with-sysroot` working.

Cheers,

Tony





reply via email to

[Prev in Thread] Current Thread [Next in Thread]