Am 05.11.2014 um 16:00 schröbte Gerhard Preuss:
> Hi!

Hi!

> ----------------
>
> $ brew update
> $ brew upgrade
> $ brew install luarocks
> $ brew sh
> $ sudo luarocks install luasocket
>
> export MACOSX_DEPLOYMENT_TARGET=10.5; gcc -O2 -fPIC
> -I/usr/local/opt/lua/include -c src/buffer.c -o src/buffer.o
> -DLUASOCKET_DEBUG -DUNIX_HAS_SUN_LEN
> -DLUASOCKET_API=__attribute__((visibility("default")))
> -DUNIX_API=__attribute__((visibility("default")))
> -DMIME_API=__attribute__((visibility("default")))
> The build-tool has reset ENV. --env=std required.
>
> ------------------
>
> Has someone else the same problem or knows how to fix it?

I have never used OS X or Homebrew, but have you tried adding 
`--env=std` to the `brew sh` as suggested? Apparently the new "Superenv" 
feature tries to provide a prestine environment for the build tools, and 
the `export MACOSX_DEPLOYMENT_TARGET=10.5` is messing with that environment.

As an alternative you could try setting `variables.CC` and 
`variables.LD` in `config.lua` to something like `gcc 
-mmacosx-version-min=10.5` ...

>
> Regards,
> Gerhard
>

Philipp




------------------------------------------------------------------------------
_______________________________________________
Luarocks-developers mailing list
Luarocks-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/luarocks-developers

Reply via email to