Bug#695369: dpkg-cross: cmake integration broken: ${DEB_*} -> $ENV{DEB_*}, and set CMAKE_CXX_COMPILER
Neil Williams <[email protected]>
| Newsgroups | gmane.linux.debian.devel.embedded |
|---|---|
| Message-ID | <20121208112458.f1100532a0ff7e52f4648490__11839.4437515692$1354966056$gmane$org@debian.org> |
On Fri, 7 Dec 2012 16:13:44 +0000 Colin Watson <[email protected]> wrote: > Package: dpkg-cross > Version: 2.6.7 > Severity: normal > Tags: patch > > The cmake integration in dpkg-cross doesn't seem to work at all, or at > least not without some additional help. :-) The working version I just compared indeed does have some changes - mainly to replace the variables with hardcoded values because that packaging only cares about cross-building for a specific architecture. > Firstly, CMakeCross.txt uses ${DEB_HOST_ARCH} et al. The correct syntax > (not that I can find any coherent documentation of this) appears to be > $ENV{DEB_HOST_ARCH}. > > Secondly, the bit in the cmake documentation that says that you only > need to set one of CMAKE_C_COMPILER and CMAKE_CXX_COMPILER appears to be > what is technically known as a lie: or at least it doesn't work properly > in toolchain files. I found I needed to set both. The tests for this code never involved toolchain packages, so thanks for the extra testing. -- Neil Williams ============= http://www.linux.codehelp.co.uk/
signature.asc
(application/pgp-signature, 836 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) iQIcBAEBCAAGBQJQwyOKAAoJEPFn5DyBQ7aC5LsQAIC/ht/6m4N5dHQQIn0ZIfho PaHLgfv9srgtKXmrtKLO8ilxQAoMrqqnyNtOWjanzPVls97XSi+06aGpU21QKHeV uZOKn1jLaIsvJ8rKU4D8pnuIFgEJ8HBT1UmN17SddHtzE97+fyBJcALzNDyvbrmf 7Id3ZIC/wS1HJpdBjEPk/GsQsQVqjibDya3Xi6JeH8TgaICufPEyxYDHI5IcdjoK s2UH7777oHXVwwxYwxWrWC7ZoMh6HqlmKs5B9xInHUhBcgdlUd+C5GYOsJunzYZW iWLF2tmgjII4hAblc1xNjnHdKd5+uhMNwUPCPfN8Zt2Bzkr534+33A9rQ+V6x9Uk cwW5tUZv9rygtTwracTWfPqHiZchgpkpz8RA93l+guqduIKEcvA6/DnYJ0NM1RIp 1zbqCwCfR15H+nqDo9rJsm6JxC8r+Rc7CCJUHNjrHDogFK+Yy8/mxPL0iFbpker+ kvM7NiS+hxxf1ki0TKJeZORasZnThTZ6yLXOfikrbwuFzj36qXZo1wSVHPcAS20U vhwaN2MktUjEgiwFwrfbZUdlwHxWXI16yOyEnxLkh/0AFN+AKDOTT3TdFSZug6QZ kZSkQa0H/b489NThkg4LJ/cd87kVa9PiznSyZ/YQNZy6vjxkR1pYTIkyd0H6aRzI 60y2RgqgQV+zSrzT9byu =pnHu -----END PGP SIGNATURE-----