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