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.

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