shithub: sox

Download patch

ref: 72a7cd80448760d6f812233175e1a84fb848a4dd
parent: d52327c0de75b39aabbb58233d7c4065d708ab06
author: cbagwell <cbagwell>
date: Sat Aug 2 20:54:00 EDT 2008

ltdl libraries were missing recommended -module.  Adding to see if
it helps platforms like cgywin.

--- a/lpc10/Makefile.am
+++ b/lpc10/Makefile.am
@@ -6,4 +6,7 @@
   lpfilt.c median.c mload.c onset.c pitsyn.c placea.c placev.c preemp.c \
   prepro.c random.c rcchk.c synths.c tbdm.c voicin.c vparms.c
 AM_CPPFLAGS=-I../src
+if HAVE_LIBLTDL
+AM_LDFLAGS=-avoid-version -module
+endif
 EXTRA_DIST = CMakeLists.txt
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -2,9 +2,10 @@
 
 RM = rm -f 
 
-AM_CPPFLAGS = -DLADSPA_PATH="\"@LADSPA_PATH@\"" -DPKGLIBDIR="\"$(pkglibdir)\""
+AM_CPPFLAGS = -DLADSPA_PATH="\"@LADSPA_PATH@\""
 AM_CFLAGS = -Wconversion #-Werror
 
+if HAVE_LIBLTDL
 # This is being used as a short cut to turn off versioning of ALL dynamic
 # fmt libraries.  If any fmt ever needs to add a specific LDFLAGS
 # then it will need to also add -avoid-version because AM_LDFLAGS
@@ -11,7 +12,9 @@
 # is ignored when you specify a more specific one.
 # We want to version libsfx and libsox and we are OK because they
 # have a more specific LDFLAGS that includes -version-info.
-AM_LDFLAGS = -avoid-version
+AM_LDFLAGS = -avoid-version -module
+AM_CPPFLAGS += -DPKGLIBDIR="\"$(pkglibdir)\""
+endif
 
 # Pass flags from --enable-silent-libtool
 LIBTOOL = @LIBTOOL@ @LIBTOOLFLAGS@