d8307d
commit c57afec0a9b318bb691e0f5fa4e9681cf30df7a4
d8307d
Author: Florian Weimer <fweimer@redhat.com>
d8307d
Date:   Fri Apr 26 07:16:56 2019 +0200
d8307d
d8307d
    elf: Link sotruss-lib.so with BIND_NOW for --enable-bind-now
d8307d
    
d8307d
    The audit module itself can be linked with BIND_NOW; it does not
d8307d
    affect its functionality.
d8307d
    
d8307d
    This should complete the leftovers from commit
d8307d
    2d6ab5df3b675e96ee587ae6a8c2ce004c6b1ba9 ("Document and fix
d8307d
    --enable-bind-now [BZ #21015]").
d8307d
d8307d
diff --git a/elf/Makefile b/elf/Makefile
d8307d
index f5285b99e22fe84d..9194339836900b9d 100644
d8307d
--- a/elf/Makefile
d8307d
+++ b/elf/Makefile
d8307d
@@ -133,6 +133,7 @@ install-others += $(inst_auditdir)/sotruss-lib.so
d8307d
 install-bin-script += sotruss
d8307d
 generated += sotruss
d8307d
 libof-sotruss-lib = extramodules
d8307d
+LDFLAGS-sotruss-lib.so += $(z-now-$(bind-now))
d8307d
 $(objpfx)sotruss-lib.so: $(objpfx)sotruss-lib.os
d8307d
 	$(build-module-asneeded)
d8307d
 $(objpfx)sotruss-lib.so: $(common-objpfx)libc.so $(objpfx)ld.so \