From 23b219f305f1ed609747a2add1dc2cca7d6a91a7 Mon Sep 17 00:00:00 2001 From: Packit Service Date: Dec 09 2020 13:21:43 +0000 Subject: Apply patch flac-cflags.patch patch_name: flac-cflags.patch present_in_specfile: true --- diff --git a/configure.ac b/configure.ac index 070ab35..b5d8971 100644 --- a/configure.ac +++ b/configure.ac @@ -390,7 +390,7 @@ if test "x$debug" = xtrue; then else CPPFLAGS="-DNDEBUG $CPPFLAGS" CFLAGS=$(echo "$CFLAGS" | sed 's/-O2//') - CFLAGS="-O3 -funroll-loops $CFLAGS" + CFLAGS="$user_cflags" fi XIPH_GCC_VERSION @@ -400,7 +400,6 @@ if test x$ac_cv_c_compiler_gnu = xyes ; then 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 XIPH_ADD_CFLAGS([-Wdeclaration-after-statement]) - XIPH_ADD_CFLAGS([-D_FORTIFY_SOURCE=2]) AC_LANG_PUSH([C++]) XIPH_ADD_CXXFLAGS([-Weffc++]) @@ -426,10 +425,6 @@ if test x$ac_cv_c_compiler_gnu = xyes ; then XIPH_ADD_CFLAGS([-fno-inline-small-functions]) fi - if test "x$asm_optimisation$sse_os" = "xyesyes" ; then - XIPH_ADD_CFLAGS([-msse2]) - fi - fi case "$host_os" in