On 20.12.18 11:08, Chris Lamb wrote: > Hi Matthias, > >> But are the really loaded at runtime? scripting.o seems to have a hard-coded >> reference, which is needed for linking? > > Hah, good point. Okay, as I understand it, the fix is just: > > commit e2e25f4fcd37030c06765c6c36441a01e1167ed9 > Author: Chris Lamb <la...@debian.org> > Date: Thu Dec 20 10:04:31 2018 +0000 > > Pass --no-as-needed to ensure linking to the Lua libraries. (Closes: > #916831) > > diff --git a/debian/rules b/debian/rules > index 9bf4a6ac..9b9e897a 100755 > --- a/debian/rules > +++ b/debian/rules > @@ -16,7 +16,7 @@ LUA_LDFLAGS = $(addprefix -llua5.1-,$(LUA_LIBS_DEBIAN)) > $(addprefix ../deps/lua/ > > export CFLAGS CPPFLAGS LDFLAGS > export DEB_BUILD_MAINT_OPTIONS = hardening=+all > -export DEB_LDFLAGS_MAINT_APPEND = -ldl -latomic $(LUA_LDFLAGS) > +export DEB_LDFLAGS_MAINT_APPEND = -Wl,-no-as-needed -ldl -latomic > $(LUA_LDFLAGS) > > ifneq (,$(filter parallel=%,$(DEB_BUILD_OPTIONS))) > NUMJOBS = $(patsubst parallel=%,%,$(filter > parallel=%,$(DEB_BUILD_OPTIONS))) > > I should really brush up on my linker knowledge one day...
well, yes, but this links *everything* to these libraries, for every binary. Sure it builds, but maybe not what you really want either.