8b8303
diff -up flac-1.3.2/configure.ac.cflags flac-1.3.2/configure.ac
8b8303
--- flac-1.3.2/configure.ac.cflags	2017-01-02 14:02:15.663046237 +0100
8b8303
+++ flac-1.3.2/configure.ac	2017-01-02 14:04:20.718046015 +0100
8b8303
@@ -390,7 +390,7 @@ if test "x$debug" = xtrue; then
8b8303
 else
8b8303
 	CPPFLAGS="-DNDEBUG $CPPFLAGS"
8b8303
 	CFLAGS=$(echo "$CFLAGS" | sed 's/-O2//')
8b8303
-	CFLAGS="-O3 -funroll-loops $CFLAGS"
8b8303
+	CFLAGS="$user_cflags"
8b8303
 fi
8b8303
 
8b8303
 XIPH_GCC_VERSION
8b8303
@@ -400,7 +400,6 @@ if test x$ac_cv_c_compiler_gnu = xyes ;
8b8303
 	CXXFLAGS="$CXXFLAGS -Wall -Wextra -Wcast-align -Wshadow -Wwrite-strings -Wctor-dtor-privacy -Wnon-virtual-dtor -Wreorder -Wsign-promo -Wundef " # -Wcast-qual -Wbad-function-cast -Wwrite-strings -Woverloaded-virtual -Wmissing-declarations
8b8303
 
8b8303
 	XIPH_ADD_CFLAGS([-Wdeclaration-after-statement])
8b8303
-	XIPH_ADD_CFLAGS([-D_FORTIFY_SOURCE=2])
8b8303
 
8b8303
 	AC_LANG_PUSH([C++])
8b8303
 	XIPH_ADD_CXXFLAGS([-Weffc++])
8b8303
@@ -426,10 +425,6 @@ if test x$ac_cv_c_compiler_gnu = xyes ;
8b8303
 		XIPH_ADD_CFLAGS([-fno-inline-small-functions])
8b8303
 		fi
8b8303
 
8b8303
-	if test "x$asm_optimisation$sse_os" = "xyesyes" ; then
8b8303
-		XIPH_ADD_CFLAGS([-msse2])
8b8303
-		fi
8b8303
-
8b8303
 	fi
8b8303
 
8b8303
 case "$host_os" in