[kde-freebsd] Cmake problem with ccache

Pietro Cerutti gahr at FreeBSD.org
Fri Aug 22 01:48:49 CEST 2008


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Dear KDE team,

I've just found out that cmake doesn't work when ccache is enabled.

The following reasoning is just a conjecture, as I have no deep
understanding of cmake.

Cmake looks for binutils' binaries in the same path where it finds the
compiler, which is /usr/local/libexec/ccache/ when ccache is on.

Have a look at lines 31-50 of the file in cmake's ${WRKSRC}:
Modules/CMakeFindBinUtils.cmake

The binutils binaries ar, ranlib, strip, ld, nm, objdump and objcopy are
looked for in _CMAKE_TOOLCHAIN_PREFIX, thus not found when the latter is
set to /usr/local/libexec/ccache

What about patching CMakeFindBinUtils.cmake to make it look for binutils
in /usr/bin/ by default?

I've seen this:
http://lists.freebsd.org/pipermail/freebsd-ports/2008-June/049090.html
but couldn't find a solution there.

Regards,

- --
Pietro Cerutti
gahr at FreeBSD.org

PGP Public Key:
http://gahr.ch/pgp

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.9 (FreeBSD)

iEYEAREKAAYFAkit/uAACgkQwMJqmJVx945UQwCgwTOyl6IQEADXZpwUQNKlBR10
YucAoN1+s2aFaxWtM6sI+smo+dQ7lf2H
=zTGC
-----END PGP SIGNATURE-----


More information about the kde-freebsd mailing list