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

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