shithub: sox

Download patch

ref: 8d7d146058be0aee0d4a4c7e6e0ab39cae7141b8
parent: 30eeaa08ca4b4ffe87b1d2783654afd3350c66e3
author: cbagwell <cbagwell>
date: Sun Nov 7 17:16:36 EST 2004

Add default rule for .c to .o.

--- a/Changelog
+++ b/Changelog
@@ -20,6 +20,11 @@
   o Changed sox to only read the exact size of a WAV data chunk
     if cooledit IFF LIST chunk is found at the end of the file.
     Normally, this isn't done to allow reading > 2gig WAV files.
+  o Modified configure to detect cygwin compiler after detecting
+    gcc compiler (fixes some default CFLAGS options).
+  o Added explicit rule for compile *.o from *.c so that
+    CPPFLAGS is always referenced.  Not all platform's default
+    rule includes CPPFLAGS (FreeBSD).
 
 sox-12.17.6
 -----------
--- a/Makefile.in
+++ b/Makefile.in
@@ -80,3 +80,8 @@
 
 config.status: configure
 	./config.status --recheck
+
+# Not all platforms use CPPFLAGS concept by default so define custom
+# rule for .c.o to make sure its used.
+.c.o:
+	${CC} ${CFLAGS} ${CPPFLAGS} -c $<