Summary: | x11-libs/qt*-4.5.1 ignores CC/CXX | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Jeroen Roovers (RETIRED) <jer> |
Component: | Current packages | Assignee: | Qt Bug Alias <qt> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | maxposedon |
Priority: | High | Keywords: | InOverlay |
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | [qting-edge] | ||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 297299 | ||
Attachments: |
ps waux | grep [g]++
respect CC/CXXflags respect CC, CXX, LINK |
Description
Jeroen Roovers (RETIRED)
2009-06-28 16:43:07 UTC
Created attachment 195957 [details]
ps waux | grep [g]++
Oh, wait, it inserts CXXFLAGS twice... I guess that inside build_directories() in qt4-build.eclass, qmake could be called with more arguments, for example QMAKE_CC, etc... have a look at what eqmake4 does. HÃ¥vard commited a patch on qt4-build-edge eclass. @Qt members, if you use -9999 qt-modules, please try to rebuild them and verify that this patch fixes this issue Thanks :) Ok as I understand there is nothing wrong with CC,CXX and cross-compilation. At least it works for me :) I am adjusting the title to be more specific about the actual error No, sorry. It doesn't use hppa2.0-unknown-linux-gnu-g++, but g++ instead. The C*FLAGS duplication is a minor problem. Created attachment 196372 [details, diff]
respect CC/CXXflags
Does the attached patch solves your issue?
jer, any updates? Created attachment 199765 [details, diff] respect CC, CXX, LINK This patch implements a better approach: the relevant variables are passed to qmake, rather than being changed when emake is called. I just committed a similar patch to qting-edge overlay: http://github.com/gentoo-qt/qting-edge/commit/62d25aa94f9bd878717032f918a3c6d4766b520e (In reply to comment #9) > Created an attachment (id=199765) [edit] > respect CC, CXX, LINK > > This patch implements a better approach: the relevant variables are passed to > qmake, rather than being changed when emake is called. > > I just committed a similar patch to qting-edge overlay: > http://github.com/gentoo-qt/qting-edge/commit/62d25aa94f9bd878717032f918a3c6d4766b520e > Indeed this patch seems much more better than the current approach. I will test it with live ebuilds Thanks Davide Unfortunately my patch seems to introduce many regressions, please ignore it. jer, can you please take a look at it now? I applied some patches in the meantime and now I'm able to cross-compile successfully from amd64 to x86, so I guess that your issue is fixed as well. Thanks much. (In reply to comment #12) > jer, can you please take a look at it now? > > I applied some patches in the meantime and now I'm able to cross-compile > successfully from amd64 to x86, so I guess that your issue is fixed as well. To which repo did you apply those patches? Ah, sorry, to gentoo-x86 :) *** Bug 282984 has been marked as a duplicate of this bug. *** Jeroen, ping? I'm marking this as fixed, based on comment #12 and no issues being reported since I pushed my fix. Reopen if the compilation still fails for you. |