summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarek Szuba <marecki@gentoo.org>2020-12-08 00:42:31 +0100
committerMarek Szuba <marecki@gentoo.org>2020-12-08 00:44:45 +0100
commit7cc9f60c84c4cb2ad8ffaf5407245f19e0a4b73b (patch)
tree82d2f11293dbeef490a788f42c8f2240cc040892 /dev-libs/libprelude
parentdev-libs/libprelude-5.2.0-r10: use LUA_DEPS in BDEPEND as well (diff)
downloadgentoo-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')
-rw-r--r--dev-libs/libprelude/files/libprelude-5.2.0-luabindings_liblua.patch13
-rw-r--r--dev-libs/libprelude/libprelude-5.2.0-r10.ebuild1
2 files changed, 14 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@
diff --git a/dev-libs/libprelude/libprelude-5.2.0-r10.ebuild b/dev-libs/libprelude/libprelude-5.2.0-r10.ebuild
index 501ea6e31eee..47127ff700b9 100644
--- a/dev-libs/libprelude/libprelude-5.2.0-r10.ebuild
+++ b/dev-libs/libprelude/libprelude-5.2.0-r10.ebuild
@@ -44,6 +44,7 @@ BDEPEND=">=dev-lang/swig-4.0.0
PATCHES=(
"${FILESDIR}/${PN}-4.0.0-fix-python-bindings.patch"
"${FILESDIR}/${PN}-5.1.0-fix_gtkdoc_1.32.patch"
+ "${FILESDIR}/${PN}-5.2.0-luabindings_liblua.patch"
)
src_prepare() {