Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 420089 - cross-xxx/mingw-runtime builds target C library with host instead of target CFLAGS
Summary: cross-xxx/mingw-runtime builds target C library with host instead of target C...
Status: RESOLVED WORKSFORME
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Other
: Normal normal (vote)
Assignee: Embedded Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-06-07 11:05 UTC by Maciej S. Szmigiero
Modified: 2012-06-09 05:21 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Maciej S. Szmigiero 2012-06-07 11:05:45 UTC
The target C library (at least in mingw case, mingw-runtime) is built using CFLAGS from host's make.conf.
But it is supposed to run on the target system, so it should be build using target CFLAGS (from /usr/${TARGET}/etc/portage/make.conf).

The obvious workaround is to rebuild the package using ${TARGET}-emerge, then use crossdev to reemerge stage2 gcc, as it may contain code from it in its CRT files.


Reproducible: Always
Comment 1 SpanKY gentoo-dev 2012-06-09 05:19:47 UTC
the cross-xxx packages are built in the host system, not the target.  using the target make.conf won't work (not that it even exists when crossdev runs).

at some point i might add a --target-cflags option to crossdev, but gcc/binutils need work first.
Comment 2 SpanKY gentoo-dev 2012-06-09 05:21:15 UTC
also, if you really want to tweak things in the mean time, use --lenv/--kenv to set custom CFLAGS for the library packages