On 21.12.18 10:02, Chris Lamb wrote: > Hi Matthias, > >>> -export DEB_LDFLAGS_MAINT_APPEND = -ldl -latomic $(LUA_LDFLAGS) >>> +export DEB_LDFLAGS_MAINT_APPEND = -Wl,-no-as-needed -ldl -latomic >>> $(LUA_LDFLAGS) > […] >>> 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. > > Can you elaborate? It's probably just too early in the morning or > close to Christmas but are you saying I just want to link scripting.o > to this? (There is only one binary in this package; the other files > in /usr/bin are symlinks.)
you cannot link anything to an object file, only to shared libs and executables. Well, if it's only one, you may only get unneeded references to libatomic on platforms where it is not needed.