elf: Link sotruss-lib.so with BIND_NOW for --enable-bind-now

The audit module itself can be linked with BIND_NOW; it does not
affect its functionality.

This should complete the leftovers from commit
2d6ab5df3b ("Document and fix
--enable-bind-now [BZ #21015]").
This commit is contained in:
Florian Weimer 2019-04-26 07:16:56 +02:00
parent a8ff215e56
commit c57afec0a9
2 changed files with 6 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2019-04-26 Florian Weimer <fweimer@redhat.com>
elf: Link sotruss-lib.so with BIND_NOW for --enable-bind-now.
* elf/Makefile (LDFLAGS-sotruss-lib.so): Set.
2019-04-26 Florian Weimer <fweimer@redhat.com>
Makeconfig: Move -Wl,-rpath-link options before library references.

View File

@ -125,6 +125,7 @@ install-others += $(inst_auditdir)/sotruss-lib.so
install-bin-script += sotruss
generated += sotruss
libof-sotruss-lib = extramodules
LDFLAGS-sotruss-lib.so += $(z-now-$(bind-now))
$(objpfx)sotruss-lib.so: $(objpfx)sotruss-lib.os
$(build-module-asneeded)
$(objpfx)sotruss-lib.so: $(common-objpfx)libc.so $(objpfx)ld.so \