On 19.12.18 11:41, Chris Lamb wrote: > tags 916831 + moreinfo > thanks > > Hi Matthias, > >> debian/rules sets >> export DEB_LDFLAGS_MAINT_APPEND = -ldl -latomic $(LUA_LDFLAGS) >> >> which fails with ld --as-needed as the default. > > I can't seem to reproduce this in current sid. I'm deliberately > modifying the above to: > > export DEB_LDFLAGS_MAINT_APPEND = -ldl -latomic $(LUA_LDFLAGS) > -Wl,--as-needed > > ... in order to expose the issue (so I can then fix it), but it still > seems to compile fine. What am I missing?
export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed -ldl -latomic $(LUA_LDFLAGS) probably should do the trick. > (Perhaps there is a better way of making it fail in sid. I assume you > have changed this default in Ubuntu or are planning on doing so.) yes, ld --as-needed is the default in Ubuntu. Maybe it's time to do that in Debian as well after the buster release. But generally it's wrong to pass libs in any LDFLAGS.