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

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