{"action":"opened","issue":{"url":"https://api.github.com/repos/machinekit/machinekit/issues/479","labels_url":"https://api.github.com/repos/machinekit/machinekit/issues/479/labels{/name}","comments_url":"https://api.github.com/repos/machinekit/machinekit/issues/479/comments","events_url":"https://api.github.com/repos/machinekit/machinekit/issues/479/events","html_url":"https://github.com/machinekit/machinekit/issues/479","id":56767856,"number":479,"title":"Build system can't cross-compile","user":{"login":"zultron","id":1940736,"avatar_url":"https://avatars.githubusercontent.com/u/1940736?v=3","gravatar_id":"","url":"https://api.github.com/users/zultron","html_url":"https://github.com/zultron","followers_url":"https://api.github.com/users/zultron/followers","following_url":"https://api.github.com/users/zultron/following{/other_user}","gists_url":"https://api.github.com/users/zultron/gists{/gist_id}","starred_url":"https://api.github.com/users/zultron/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zultron/subscriptions","organizations_url":"https://api.github.com/users/zultron/orgs","repos_url":"https://api.github.com/users/zultron/repos","events_url":"https://api.github.com/users/zultron/events{/privacy}","received_events_url":"https://api.github.com/users/zultron/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-02-06T04:06:16Z","updated_at":"2015-02-06T04:06:16Z","closed_at":null,"body":"This documents a stack of patches, WIP\r\n\r\n- The `debian/control` list of build deps contains unneeded entries, some of which make dep resolution difficult for foreign arches\r\n- The `debian/rules` file doesn't use distro-provided cross-compile goodies like `/usr/share/dpkg/architecture.mk`\r\n- Multiple issues in `configure.in`:\r\n  - The CZMQ curve authentication checks are intended for run-time use; using them at build time requires `AC_TRY_RUN`, which is cross-compile unfriendly (see #478)\r\n  - The `pkg-config` checks, as written, don't support cross-compilation\r\n  - Some issue with `tcl` detection I've forgotten\r\n  - Needs `AC_CANONICAL_BUILD` macro\r\n- The `PRELOAD_WORKAROUND` tests break; this ancient bug (Maverick?) is long squashed by now\r\n- No detection of cross-arch `ld` and `objcopy` tools\r\n- The `pasm` program needs to be compiled in the build arch, not the host arch; the build system has no provision for this\r\n\r\n"}}