shithub: sox

Download patch

ref: 51032763ce0e33a9ee5ec3a532dfc6c093693597
parent: 16abc9a5f82201507ba30c99df4d2811959ae5e8
author: Mans Rullgard <mans@mansr.com>
date: Tue Aug 4 11:03:08 EDT 2020

link with --as-needed [bug #119]

Extra libraries not used directly by us are often picked up via
pkg-config.  This flag avoids adding DT_NEEDED tags for these.

--- a/configure.ac
+++ b/configure.ac
@@ -24,6 +24,8 @@
 AC_PROG_INSTALL
 AC_PROG_LN_S
 
+AX_APPEND_LINK_FLAGS([-Wl,--as-needed])
+
 dnl Increase version when binary compatibility with previous version is broken
 SHLIB_VERSION=3:0:0
 AC_SUBST(SHLIB_VERSION)