It was thus said that the Great Doug Currie once stated:
> 
> On Apr 29, 2013, at 11:01 PM, Sean Conner <s...@conman.org> wrote:
> 
> >  This is usable (it took long enough) but I'm not terribly happy with it,
> > because of that [[ CC = "$(CC) -std=c99" ]] business.  Yes, I could change
> > it to [[ CC = "gcc -std=c99" ]] since (and I have checked) all the Unix
> > variants define CC as "gcc" and it has a good chance of working (except for
> > Solaris [2]).  
> 
> Unless you consider OS X a Unix.

  I do, but Luarocks still uses gcc:

if detected.macosx then
   defaults.external_lib_extension = "dylib"
   defaults.arch = "macosx-"..proc
   defaults.platforms = {"unix", "bsd", "macosx"}
   defaults.variables.LIBFLAG = "-bundle -undefined dynamic_lookup -all_load"
   defaults.variables.STATFLAG = "-f '%A'"
   local version = io.popen("sw_vers -productVersion"):read("*l")
   version = tonumber(version and version:match("^[^.]+%.([^.]+)")) or 3
   if version >= 5 then
      version = 5
   else
      defaults.gcc_rpath = false
   end
   defaults.variables.CC = "export MACOSX_DEPLOYMENT_TARGET=10."..version.."; 
gcc"
   defaults.variables.LD = "export MACOSX_DEPLOYMENT_TARGET=10."..version.."; 
gcc"
end

> > But I, personally, would feel better if I had some way of specifying C99.
> 
> Yes.

  It's heartening to see that I'm not the only one.

  -spc



------------------------------------------------------------------------------
Introducing AppDynamics Lite, a free troubleshooting tool for Java/.NET
Get 100% visibility into your production application - at no cost.
Code-level diagnostics for performance bottlenecks with <2% overhead
Download for free and get started troubleshooting in minutes.
http://p.sf.net/sfu/appdyn_d2d_ap1
_______________________________________________
Luarocks-developers mailing list
Luarocks-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/luarocks-developers

Reply via email to