diff options
author | Marek Szuba <marecki@gentoo.org> | 2020-12-08 00:42:31 +0100 |
---|---|---|
committer | Marek Szuba <marecki@gentoo.org> | 2020-12-08 00:44:45 +0100 |
commit | 7cc9f60c84c4cb2ad8ffaf5407245f19e0a4b73b (patch) | |
tree | 82d2f11293dbeef490a788f42c8f2240cc040892 /dev-libs/libprelude/files | |
parent | dev-libs/libprelude-5.2.0-r10: use LUA_DEPS in BDEPEND as well (diff) | |
download | gentoo-7cc9f60c84c4cb2ad8ffaf5407245f19e0a4b73b.tar.gz gentoo-7cc9f60c84c4cb2ad8ffaf5407245f19e0a4b73b.tar.bz2 gentoo-7cc9f60c84c4cb2ad8ffaf5407245f19e0a4b73b.zip |
dev-libs/libprelude-5.2.0-r10: do not link Lua bindings against liblua
This is neither allowed for compiled Lua modules nor, as demonstrated
by the fact simply dropping this from linker options works just fine,
actually needed in this case.
Signed-off-by: Marek Szuba <marecki@gentoo.org>
Diffstat (limited to 'dev-libs/libprelude/files')
-rw-r--r-- | dev-libs/libprelude/files/libprelude-5.2.0-luabindings_liblua.patch | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/dev-libs/libprelude/files/libprelude-5.2.0-luabindings_liblua.patch b/dev-libs/libprelude/files/libprelude-5.2.0-luabindings_liblua.patch new file mode 100644 index 000000000000..6eeb4beb92b4 --- /dev/null +++ b/dev-libs/libprelude/files/libprelude-5.2.0-luabindings_liblua.patch @@ -0,0 +1,13 @@ +Compiled Lua modules must not link against liblua. + +--- a/bindings/lua/Makefile.am ++++ b/bindings/lua/Makefile.am +@@ -9,7 +9,7 @@ + + AM_CPPFLAGS = -I@top_srcdir@ -I@top_builddir@/src/include -I@top_srcdir@/src/include -I@top_builddir@/src/libprelude-error -I@top_srcdir@/bindings/c++/include @LUA_CFLAGS@ -I@top_srcdir@/libmissing -I@top_builddir@/libmissing + +-prelude_la_LDFLAGS = -module -avoid-version @LUA_LIBS@ ++prelude_la_LDFLAGS = -module -avoid-version + prelude_la_LIBADD = $(top_builddir)/bindings/c++/.libs/libpreludecpp.la + prelude_la_SOURCES = prelude.cxx + preludedir = $(libdir)/lua/@LUA_VERSION@ |