[package]

name = "lua52-sys"
version = "0.0.3"
authors = ["Pierre Krieger <pierre.krieger1708@gmail.com>"]
description = "Bindings for Lua 5.2"
build = "build.rs"
links = "lua52"
license = "MIT"
repository = "https://github.com/tomaka/rust-hl-lua"

[build-dependencies]
pkg-config = "0.3"
gcc = "0.3"

[dependencies]
libc = "*"

[package]

name = "lua52-sys"
version = "0.0.3"
authors = ["Pierre Krieger <pierre.krieger1708@gmail.com>"]
description = "Bindings for Lua 5.2"
build = "build.rs"
links = "lua"
license = "MIT"
repository = "https://github.com/tomaka/rust-hl-lua"

[build-dependencies]
pkg-config = "0.3"
gcc = "0.3"

[dependencies]
libc = "*"

Change "links" from "lua52" to just "lua"
Change "links" from "lua52" to just "lua"

Lua versions share function names. It doesn't make sense to link to both lua5.2 and lua5.3 for example.