Use --as-needed when linking libpython3.so. Closes #11347.
Patch by Arfrever Frehtes Taifersar Arahesis.
diff --git a/Misc/NEWS b/Misc/NEWS
index 76e6a96..233fc1b 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -313,6 +313,8 @@
 Build
 -----
 
+- Issue #11347: Use --as-needed when linking libpython3.so.
+
 - Issue #11411: Fix 'make DESTDIR=' with a relative destination.
 
 - Issue #11268: Prevent Mac OS X Installer failure if Documentation