{"action":"created","issue":{"url":"https://api.github.com/repos/ponylang/ponyc/issues/1797","repository_url":"https://api.github.com/repos/ponylang/ponyc","labels_url":"https://api.github.com/repos/ponylang/ponyc/issues/1797/labels{/name}","comments_url":"https://api.github.com/repos/ponylang/ponyc/issues/1797/comments","events_url":"https://api.github.com/repos/ponylang/ponyc/issues/1797/events","html_url":"https://github.com/ponylang/ponyc/pull/1797","id":218731766,"number":1797,"title":"Build: use AR if already defined and avoid the direct use of cc","user":{"login":"BlackYoup","id":6098160,"avatar_url":"https://avatars0.githubusercontent.com/u/6098160?v=3","gravatar_id":"","url":"https://api.github.com/users/BlackYoup","html_url":"https://github.com/BlackYoup","followers_url":"https://api.github.com/users/BlackYoup/followers","following_url":"https://api.github.com/users/BlackYoup/following{/other_user}","gists_url":"https://api.github.com/users/BlackYoup/gists{/gist_id}","starred_url":"https://api.github.com/users/BlackYoup/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BlackYoup/subscriptions","organizations_url":"https://api.github.com/users/BlackYoup/orgs","repos_url":"https://api.github.com/users/BlackYoup/repos","events_url":"https://api.github.com/users/BlackYoup/events{/privacy}","received_events_url":"https://api.github.com/users/BlackYoup/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-04-02T00:13:50Z","updated_at":"2017-04-03T12:37:24Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/ponylang/ponyc/pulls/1797","html_url":"https://github.com/ponylang/ponyc/pull/1797","diff_url":"https://github.com/ponylang/ponyc/pull/1797.diff","patch_url":"https://github.com/ponylang/ponyc/pull/1797.patch"},"body":"Hi !\r\n\r\nI was packaging ponyc for the distribution I use (Exherbo, a source based distribution) when I ran into some troubles. We don't authorize our build system to use un-prefixed build tools (like `cc` or `gcc-ar`). Instead, we use a prefixed tool which makes cross-compilation easier (like `x86_64-pc-linux-gnu-cc`).\r\n\r\nFor `cc`, you already use `$(CC)` everywhere else so I guessed it was OK to use it here too.\r\n\r\nFor `AR`, our build tool also defines `AR` environment variable with the prefixed tool as its value (which is `x86_64-pc-linux-gnu-ar` for us). I'm really not sure about that fix, my logic was \"don't override the AR environment variable if already defined\".\r\n\r\nTell me if there is something wrong in there, in the meantime, I'll continue to explore pony :-)"},"comment":{"url":"https://api.github.com/repos/ponylang/ponyc/issues/comments/291130271","html_url":"https://github.com/ponylang/ponyc/pull/1797#issuecomment-291130271","issue_url":"https://api.github.com/repos/ponylang/ponyc/issues/1797","id":291130271,"user":{"login":"SeanTAllen","id":193596,"avatar_url":"https://avatars1.githubusercontent.com/u/193596?v=3","gravatar_id":"","url":"https://api.github.com/users/SeanTAllen","html_url":"https://github.com/SeanTAllen","followers_url":"https://api.github.com/users/SeanTAllen/followers","following_url":"https://api.github.com/users/SeanTAllen/following{/other_user}","gists_url":"https://api.github.com/users/SeanTAllen/gists{/gist_id}","starred_url":"https://api.github.com/users/SeanTAllen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SeanTAllen/subscriptions","organizations_url":"https://api.github.com/users/SeanTAllen/orgs","repos_url":"https://api.github.com/users/SeanTAllen/repos","events_url":"https://api.github.com/users/SeanTAllen/events{/privacy}","received_events_url":"https://api.github.com/users/SeanTAllen/received_events","type":"User","site_admin":false},"created_at":"2017-04-03T12:37:24Z","updated_at":"2017-04-03T12:37:24Z","body":"Thanks @BlackYoup!"}}
{"actor":{"display_login":"SeanTAllen"}}