lua5_*: tweak linking libraries
All liblua.so were missing a library or two; I'm not sure if there's a better way to add them. Check: ldd -r ./result/lib/liblua.so
This commit is contained in:
parent
322ec24acd
commit
539ad4f811
@ -72,6 +72,8 @@ self = stdenv.mkDerivation rec {
|
||||
'';
|
||||
inherit postConfigure;
|
||||
|
||||
NIX_LDFLAGS = [ "-lm" ] ++ lib.optional (lib.versionOlder luaversion "5.2") "-ldl";
|
||||
|
||||
inherit postBuild;
|
||||
|
||||
postInstall = ''
|
||||
@ -93,7 +95,7 @@ self = stdenv.mkDerivation rec {
|
||||
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"
|
||||
|
Loading…
x
Reference in New Issue
Block a user