Closed dustingooding closed 12 years ago
You need to create a config file for luarocks (/etc/luarocks/config.lua): variables = { CFLAGS = " -fPIC -march=native -O3 -g -pipe ", -- I also recommend these variables: CMAKE_BUILD_TYPE = "Release", CMAKE = "cmake", }
That is what I have in my config file. The important flag is the "-fPIC" one, I don't know why luarocks doesn't add that flag itself.