{"action":"opened","issue":{"url":"https://api.github.com/repos/alexcrichton/gcc-rs/issues/51","labels_url":"https://api.github.com/repos/alexcrichton/gcc-rs/issues/51/labels{/name}","comments_url":"https://api.github.com/repos/alexcrichton/gcc-rs/issues/51/comments","events_url":"https://api.github.com/repos/alexcrichton/gcc-rs/issues/51/events","html_url":"https://github.com/alexcrichton/gcc-rs/issues/51","id":98212658,"number":51,"title":"Is hardcoding -mwin32 on windows targets a good idea?","user":{"login":"bvinc83","id":12972641,"avatar_url":"https://avatars.githubusercontent.com/u/12972641?v=3","gravatar_id":"","url":"https://api.github.com/users/bvinc83","html_url":"https://github.com/bvinc83","followers_url":"https://api.github.com/users/bvinc83/followers","following_url":"https://api.github.com/users/bvinc83/following{/other_user}","gists_url":"https://api.github.com/users/bvinc83/gists{/gist_id}","starred_url":"https://api.github.com/users/bvinc83/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bvinc83/subscriptions","organizations_url":"https://api.github.com/users/bvinc83/orgs","repos_url":"https://api.github.com/users/bvinc83/repos","events_url":"https://api.github.com/users/bvinc83/events{/privacy}","received_events_url":"https://api.github.com/users/bvinc83/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-07-30T16:37:41Z","updated_at":"2015-07-30T16:37:41Z","closed_at":null,"body":"See sfackler/rust-openssl#248\r\n\r\nAdding the -mwin32 flag as default in gcc-rs is the reason that openssl-sys is failing to compile under Cygwin.  The openssl code seems to be expecting that, under Cygwin, the _WIN32 is not defined.\r\n\r\nWhat do you feel is the best way to handle this problem?\r\n\r\nIt makes sense to me that since the -mwin32 flag is not a gcc default, that projects that need -mwin32 should add it to their gcc flags.\r\n\r\nIt doesn't make sense to me that projects that don't want -mwin32 should be required to opt out of it because gcc-rs has it as a default.\r\n\r\nWhat do you think?"}}