kernelsauce / turbo

Turbo is a framework built for LuaJIT 2 to simplify the task of building fast and scalable network applications. It uses a event-driven, non-blocking, no thread design to deliver excellent performance and minimal footprint to high-load applications while also providing excellent support for embedded uses.
http://turbo.readthedocs.io/
Apache License 2.0
528 stars 84 forks source link

Makefile: Fix cross-compilation and variables overrides #259

Closed mniestroj closed 8 years ago

mniestroj commented 8 years ago

CFLAGS and CPPFLAGS were not properly overriden during cross-compilation. There was a missing -fPIC, which caused build error. Additionally optimization flags were provided to gcc twice if they were also specified in CFLAGS.

Fix managing CFLAGS and CPPFLAGS in Makefile, so they can be easily overriden.