librpc (using cmake) breaks on external toolchain
|Reported by:||dev@…||Owned by:||developers|
|Priority:||normal||Milestone:||Barrier Breaker 14.07|
|Keywords:||cmake, external toolchain||Cc:|
I'm using the nearly current OpenWrt from git ( 5034ff8395447d72b427867fc3469b3601cd83f2 ) and librpc breaks when using an external (OpenWrt-) toolchain. I use this with Hudson to have 2 separate builds because when doing 'git clean -r -d -x' the toolchain would be lost and the build would take to long for small changes.
Here is how to reproduce:
- Compile a normal at91 OpenWrt project in directory 'tc'
- Add a second checkout in directory 'base' and set the toolchain path in make menuconfig to the 'tc/staging...' directory
- Now do a make in the 'base'
Everything compiles fine till 'librpc' which is using cmake. I found out that in include/cmake.mk the path to the toolchain is set using TOOLCHAIN_DIR. Setting this to TOOLCHAIN_ROOT_DIR as defined in rules.mk does the trick for me but I don't know if this is the right solution.