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