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