Blame SOURCES/libtracefs-1.0.2-harden-linking.patch

95d88a
--- a/scripts/utils.mk
95d88a
+++ b/scripts/utils.mk
95d88a
@@ -56,7 +56,7 @@
95d88a
 
95d88a
 do_compile_shared_library =			\
95d88a
 	($(print_shared_lib_compile)		\
95d88a
-	$(CC) --shared $^ '-Wl,-soname,$(1),-rpath=$$ORIGIN' -o $@ $(LIBS))
95d88a
+	$(CC) --shared $^ '-Wl,-soname,$(1),-rpath=$$ORIGIN' -o $@ $(GCCLDFLAGS) $(LIBS))
95d88a
 
95d88a
 do_compile_plugin_obj =				\
95d88a
 	($(print_plugin_obj_compile)		\