{"action":"created","issue":{"url":"https://api.github.com/repos/keplerproject/luarocks/issues/422","labels_url":"https://api.github.com/repos/keplerproject/luarocks/issues/422/labels{/name}","comments_url":"https://api.github.com/repos/keplerproject/luarocks/issues/422/comments","events_url":"https://api.github.com/repos/keplerproject/luarocks/issues/422/events","html_url":"https://github.com/keplerproject/luarocks/issues/422","id":106280526,"number":422,"title":"Removal of OSX CC hack (MACOSX_DEPLOYMENT_TARGET)","user":{"login":"daurnimator","id":127971,"avatar_url":"https://avatars.githubusercontent.com/u/127971?v=3","gravatar_id":"","url":"https://api.github.com/users/daurnimator","html_url":"https://github.com/daurnimator","followers_url":"https://api.github.com/users/daurnimator/followers","following_url":"https://api.github.com/users/daurnimator/following{/other_user}","gists_url":"https://api.github.com/users/daurnimator/gists{/gist_id}","starred_url":"https://api.github.com/users/daurnimator/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/daurnimator/subscriptions","organizations_url":"https://api.github.com/users/daurnimator/orgs","repos_url":"https://api.github.com/users/daurnimator/repos","events_url":"https://api.github.com/users/daurnimator/events{/privacy}","received_events_url":"https://api.github.com/users/daurnimator/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":15,"created_at":"2015-09-14T06:40:21Z","updated_at":"2015-10-04T10:00:03Z","closed_at":null,"body":"Note: the below is an email I sent to the luarocks list back on January 16 2015; but it got no replies.\r\n\r\nI can't see it in the sourceforge archives: did it get stuck in some spam filter?\r\n\r\n---------------------------------\r\n\r\nCurrently luarocks uses a hack of defining `CC=\"export MACOSX_DEPLOYMENT_TARGET=10.<version>; gcc\"`\r\nWhere `<version>` maxes out at `5`.\r\nhttps://github.com/keplerproject/luarocks/blob/02eff158f095ed95cf3c889fb0e9c2efd06beeb9/src/luarocks/cfg.lua#L525\r\n\r\nThere are several problems with this:\r\n\r\n1. Defining `CC` as multiple commands breaks shell scripts; it should be only set to a single command to run.\r\nA workaround for this issue alone is to instead use: `env MACOSX_DEPLOYMENT_TARGET=10.<version> gcc`\r\n\r\n2. `MACOSX_DEPLOYMENT_TARGET` is needlessly limited to 10.5; Some features important features are only available in later targets.\r\ne.g.  `__thread` support is only available for 10.7 and above.\r\n\r\n3. `MACOSX_DEPLOYMENT_TARGET` isn't required in 10.5+\r\n(according to Luiz, June 2012)\r\n\r\n\r\nI propose that we drop this `CC`/`LD` hack completely, and if someone wants to compile for an old osx version (pre 2007), they can take the 5 seconds to configure their variables manually.\r\n\r\nIs someone perhaps more versed in OSX compilation able to say if this is a good/bad idea?"},"comment":{"url":"https://api.github.com/repos/keplerproject/luarocks/issues/comments/145331558","html_url":"https://github.com/keplerproject/luarocks/issues/422#issuecomment-145331558","issue_url":"https://api.github.com/repos/keplerproject/luarocks/issues/422","id":145331558,"user":{"login":"daurnimator","id":127971,"avatar_url":"https://avatars.githubusercontent.com/u/127971?v=3","gravatar_id":"","url":"https://api.github.com/users/daurnimator","html_url":"https://github.com/daurnimator","followers_url":"https://api.github.com/users/daurnimator/followers","following_url":"https://api.github.com/users/daurnimator/following{/other_user}","gists_url":"https://api.github.com/users/daurnimator/gists{/gist_id}","starred_url":"https://api.github.com/users/daurnimator/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/daurnimator/subscriptions","organizations_url":"https://api.github.com/users/daurnimator/orgs","repos_url":"https://api.github.com/users/daurnimator/repos","events_url":"https://api.github.com/users/daurnimator/events{/privacy}","received_events_url":"https://api.github.com/users/daurnimator/received_events","type":"User","site_admin":false},"created_at":"2015-10-04T10:00:03Z","updated_at":"2015-10-04T10:00:03Z","body":"Is there an LR3 TODO list we should track this on?"}}