shithub: libsamplerate

Download patch

ref: 8e7e4ca33d480a4d4441e67d2b99391b57cf7124
parent: eb78a94ed2d3a30cb40f2007d8bc7472966b6788
author: sezero <sezero@users.sourceforge.net>
date: Wed Nov 11 15:03:10 EST 2020

tune OS-specific CFLAGS tweaks for Darwin:

- Do not remove -Wall for Darwin: system headers should be OK nowadays.
- Do remove -Wshorten-64-to-32 for Darwin: lots and _lots_ of warnings
  from xxx_coeff.h, otherwise.
- Remove Rhapsody case, shouldn't be relevant today.

--- a/configure.ac
+++ b/configure.ac
@@ -239,13 +239,11 @@
 
 AS_IF([test "x$ax_cv_c_compiler_vendor" = "xgnu"], [
 		# OS specific tweaks.
-		# Disable -Wall for Apple Darwin/Rhapsody.
-		# System headers on these systems are broken.
 		AS_CASE([${host_os}],
 			[mingw*|cygwin*], [
 				SHLIB_VERSION_ARG="-export-symbols \$(top_builddir)/Win32/libsamplerate-0.def"],
-			[darwin* | rhapsody*], [
-				temp_CFLAGS=`echo $CFLAGS | sed "s/-Wall//"`
+			[darwin*], [dnl lots of warnings from xxx_coeff.h, otherwise:
+				temp_CFLAGS=`echo $CFLAGS | sed "s/-Wshorten-64-to-32//"`
 				CFLAGS=$temp_CFLAGS],
 			[linux*|kfreebsd*-gnu*|gnu*], [
 				SHLIB_VERSION_ARG="-Wl,--version-script=\$(top_builddir)/src/Version_script"