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)		\
cfd401
-	$(CC) --shared $^ '-Wl,-soname,$(1),-rpath=$$ORIGIN' -o $@ $(LDFLAGS) $(LIBS))
cfd401
+	$(CC) --shared $^ '-Wl,-soname,$(1),-rpath=$$ORIGIN' -o $@ $(GCCLDFLAGS) $(LDFLAGS) $(LIBS))
95d88a
 
95d88a
 do_compile_plugin_obj =				\
95d88a
 	($(print_plugin_obj_compile)		\