On Tuesday 05 October 2010, Watkins, Bradley wrote:
[..] That will, almost certainly, break lua compilation on non-CentOS distros as well as other platforms.
The correct way, at least on Linux (I don't personally do much cross-platform work), is to use pkg-config to both test for the correct version and get the linker flags.
The output on my Fedora workstation, for example:
[user@workstation]$ pkg-config --libs lua -llua -lm -ldl [user@workstation]$
Hi Bradley,
you're right, either use pkg-config or a provided tool from the package (like mysql_config for mysql) in the Makefile would be the most compatible way to get the correct library name, path and flags for the compilation.
Viele Grüße,
Henning