From: Ben Hutchings <b...@decadent.org.uk>

Signed-off-by: Ben Hutchings <b...@decadent.org.uk>
Signed-off-by: Sasha Levin <alexander.le...@verizon.com>
---
 tools/lib/lockdep/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/lib/lockdep/Makefile b/tools/lib/lockdep/Makefile
index ce21b9429314..ed9ace59d112 100644
--- a/tools/lib/lockdep/Makefile
+++ b/tools/lib/lockdep/Makefile
@@ -101,7 +101,7 @@ include $(srctree)/tools/build/Makefile.include
 
 do_compile_shared_library =                    \
        ($(print_shared_lib_compile)            \
-       $(CC) --shared $^ -o $@ -lpthread -ldl -Wl,-soname='$(@F)';$(shell ln 
-sf $(@F) $(@D)/liblockdep.so))
+       $(CC) $(LDFLAGS) --shared $^ -o $@ -lpthread -ldl 
-Wl,-soname='$(@F)';$(shell ln -sf $(@F) $(@D)/liblockdep.so))
 
 do_build_static_lib =                          \
        ($(print_static_lib_build)              \
-- 
2.11.0

Reply via email to