shithub: sox

Download patch

ref: f5b1ce0d612ba55c208fa9841d54f7cffc6fa314
parent: f236814dca430d7c411d71e6c7fea8cefe29c4e2
author: Ulrich Klauer <ulrich@chirlu.de>
date: Thu Mar 7 22:10:16 EST 2013

Only use -Wno-long-long on GCC

--- a/configure.ac
+++ b/configure.ac
@@ -431,7 +431,9 @@
 AC_OPTIONAL_FORMAT(opus, OPUS,
   [PKG_CHECK_MODULES(OPUS, [opusfile], [], using_opus=no)],
   using_opus=no)
-
+if test "$GCC" = "yes"; then
+  OPUS_CFLAGS="$OPUS_CFLAGS -Wno-long-long"
+fi
 
 
 # Check for FLAC libraries
--- a/src/optional-fmts.am
+++ b/src/optional-fmts.am
@@ -138,7 +138,7 @@
 if HAVE_OPUS
 if STATIC_OPUS
   libsox_la_SOURCES += opus.c
-  libsox_la_CFLAGS += @OPUS_CFLAGS@ -Wno-long-long
+  libsox_la_CFLAGS += @OPUS_CFLAGS@
 if STATIC_LIBSOX_ONLY
   sox_LDADD += @OPUS_LIBS@
 else
@@ -146,7 +146,7 @@
 endif
 else
   libsox_fmt_opus_la_SOURCES = opus.c
-  libsox_fmt_opus_la_CFLAGS = @OPUS_CFLAGS@ -Wno-long-long
+  libsox_fmt_opus_la_CFLAGS = @OPUS_CFLAGS@
   libsox_fmt_opus_la_LIBADD = libsox.la @OPUS_LIBS@
   pkglib_LTLIBRARIES += libsox_fmt_opus.la
 endif