lol

lua: fix linkage

This fixes a couple of problems:

* Lua 5.1 doesn't have SYSLIBS, so wasn't being linked with any
libraries.

* SYSLIBS doesn't include -lm, so we had to add that manually to
pkgconfig. LIBS includes -lm, so we don't need that hack any more.

authored by

Alyssa Ross and committed by
Jonathan Ringer
665732d8 1758c0ac

+2 -2
+1 -1
pkgs/development/interpreters/lua-5/interpreter.nix
··· 93 93 Description: An Extensible Extension Language 94 94 Version: ${version} 95 95 Requires: 96 - Libs: -L$out/lib -llua -lm 96 + Libs: -L$out/lib -llua 97 97 Cflags: -I$out/include 98 98 EOF 99 99 ln -s "$out/lib/pkgconfig/lua.pc" "$out/lib/pkgconfig/lua-${luaversion}.pc"
+1 -1
pkgs/development/interpreters/lua-5/lua-dso.make
··· 1 1 $(LUA_SO): $(CORE_O) $(LIB_O) 2 - $(CC) -shared $(SYSLIBS) -Wl,-soname,$(LUA_SO).$(V) -o $@.$(R) $? $(MYLDFLAGS) 2 + $(CC) -shared $(LIBS) -Wl,-soname,$(LUA_SO).$(V) -o $@.$(R) $? $(MYLDFLAGS) 3 3 ln -sf $(LUA_SO).$(R) $(LUA_SO).$(V) 4 4 ln -sf $(LUA_SO).$(R) $(LUA_SO)