| Summary: | www-client/chromium - bundled v8 engine does not respect CXXFLAGS and CXX | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | octoploid <octoploid> |
| Component: | Current packages | Assignee: | Chromium Project <chromium> |
| Status: | RESOLVED OBSOLETE | ||
| Severity: | normal | CC: | kripton, octoploid |
| Priority: | Normal | ||
| Version: | unspecified | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
|
Description
octoploid
2013-11-21 09:01:45 UTC
The chromium build process uses 2 separate toolchains: target: This uses CXX and CXXFLAGS host: This uses BUILD_CXX and possibly BUILD_CXXFLAGS Try setting BUILD_CXX in make.conf or your environment. Correction: the host toolchain will probably ignore BUILD_CXXFLAGS, but it doesn't really matter; this toolchain is only used to build programs which are executed during the build process. (In reply to Mike Gilbert from comment #1) > The chromium build process uses 2 separate toolchains: > > target: This uses CXX and CXXFLAGS > host: This uses BUILD_CXX and possibly BUILD_CXXFLAGS > > Try setting BUILD_CXX in make.conf or your environment. Right, it'd be interesting to see the results of that. Note that it's only a workaround, I'd still like to apply the users's flags and CXX choice. (In reply to Mike Gilbert from comment #2) > Correction: the host toolchain will probably ignore BUILD_CXXFLAGS, but it > doesn't really matter; this toolchain is only used to build programs which > are executed during the build process. It's probably a low-severity bug, but I'd still like to get that fixed. I'll take a look at the build system and see what's different. Yes setting BUILD_CXX in make.conf works fine. I guess one could edit build_ffmpeg.sh to add CXXFLAGS support: add_flag_common -optflags=... add_flag_common --extra-cxxflags=... (see ffmpeg-2.1.ebuild) build_ffmpeg.sh also contains an outdated (ld)gold check, that I had to delete to get past it (I use gold as my system linker). BTW do you guys know how to disable SSSE3 in the whole tree? Because a clang lto build will fail with linker errors otherwise. (My AMD machine doesn't support SSE3 and SSSE3). A normal clang build works fine. (In reply to Paweł Hajdan, Jr. from comment #3) > Right, it'd be interesting to see the results of that. Note that it's only a > workaround, I'd still like to apply the users's flags and CXX choice. > Except that if you are trying to cross-compile, you definitely don't want to use CXX for the chromium's host toolchain. I guess we could have BUILD_CXX default to CXX if tc-is-cross-compiler returns false. (In reply to Paweł Hajdan, Jr. from comment #3) > It's probably a low-severity bug, but I'd still like to get that fixed. I'll > take a look at the build system and see what's different. You are probably already aware, but we do a little juggling in the ebuild: # Tools for building programs to be executed on the build system, bug #410883. export AR_host=$(tc-getBUILD_AR) export CC_host=$(tc-getBUILD_CC) export CXX_host=$(tc-getBUILD_CXX) export LD_host=${CXX_host} I did some grepping through the gyp source, and I didn't see anything like "CXXFLAGS_host", or any other obvious way to specify that. |