shithub: sox

Download patch

ref: 13cc1eacf32ea2823cc65b273e2fab34845cf737
parent: 074940656f422d0bc21e70be87de06d37a1da21e
author: cbagwell <cbagwell>
date: Mon Nov 3 20:56:54 EST 2008

Add some required options that os2 always requires.

--- a/INSTALL
+++ b/INSTALL
@@ -117,11 +117,6 @@
 dynamic DLL's will be required to be distributed with the cygwin
 executable.
 
-If you get compile failures during linking on your platform, you may need to
-pass "-no-undefined" to libtool.  Trying compiling with this:
-
-./configure LDFLAGS="-no-undefined"
-
 Newer versions of SoX include support for loading libraries for
 file formats at runtime.  If you experience problems with this
 then you may wish to revert back to the older compile-time support.
--- a/configure.ac
+++ b/configure.ac
@@ -109,6 +109,10 @@
       *linux* | *solaris*)
         LDFLAGS="$LDFLAGS -Wl,-z,defs"
         ;;
+      *os2*)
+        CFLAGS="$CFLAGS -Zofm"
+        LDFLAGS="$LDFLAGS -no-undefined"
+        ;;
     esac
 fi
 AC_SUBST(WARN_CFLAGS)