shithub: sox

Download patch

ref: c24cef3604881210fd050dcd54b2745e0f233555
parent: 112850412a34ca6845b6354ec5d8ec98cd74ee1c
author: Mans Rullgard <mans@mansr.com>
date: Sat Aug 15 18:14:05 EDT 2020

build: drop -z defs linker option

The -z defs option is useful as a guard against accidentally leaving
symbols unresolved, but it breaks linking shared libraries on OpenBSD.
Figuring out when it is safe is more trouble than it's worth.
Drop it entirely.

--- a/configure.ac
+++ b/configure.ac
@@ -85,13 +85,6 @@
 dnl Extra CFLAGS if we have gcc
 if test "$GCC" = "yes"; then
     CFLAGS="$CFLAGS -Wall -Wmissing-prototypes -Wstrict-prototypes"
-
-    dnl Define stricter policy on GNU/Linux, all symbols must be resolved
-    case $target in
-      *linux* | *solaris*)
-        LDFLAGS="$LDFLAGS -Wl,-z,defs"
-        ;;
-    esac
 fi
 
 AC_ARG_WITH(distro,