From 52fe0a4fe2bec8a3b4e7a8b5b6fa667504bced12 Mon Sep 17 00:00:00 2001 From: wm4 Date: Thu, 15 Nov 2012 14:34:34 +0100 Subject: [PATCH] configure: remove --enable-profile The --enable-profile switch simply adds -p to the CFLAGS, which enables gcc's extremely worthless "prof" profiling support. This kind of profiling is broken on the conceptual level and thus harmful, and even if you want it, you can enable it manually with --extra-cflags. Also remove $_march $_mcpu from the CFLAGS code. These variables were always unset, as the code setting them has been removed earlier. --- configure | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/configure b/configure index 162fee7575..705aba1f5e 100755 --- a/configure +++ b/configure @@ -387,7 +387,6 @@ Miscellaneous options: Advanced options: --enable-shm enable shm [autodetect] --enable-debug[=1-3] compile-in debugging information [disable] - --enable-profile compile-in profiling information [disable] Use these options if autodetection fails: --extra-cflags=FLAGS extra CFLAGS @@ -561,12 +560,6 @@ for ac_option do --disable-static) _ld_static='' ;; - --enable-profile) - _profile='-p' - ;; - --disable-profile) - _profile= - ;; --enable-debug) _debug='-g' _opt= @@ -1128,16 +1121,16 @@ cflag_check -pipe -I. && _pipe="-pipe" && echores "yes" || echores "no" # Checking for CFLAGS if test -z "$CFLAGS" ; then if test "$cc_vendor" = "intel" ; then - CFLAGS="$_opt $_debug $_profile $_march $_mcpu $_pipe -fomit-frame-pointer" + CFLAGS="$_opt $_debug $_pipe -fomit-frame-pointer" WARNFLAGS="-wd167 -wd556 -wd144" elif test "$cc_vendor" = "clang"; then - CFLAGS="$_opt $_debug $_profile $_march $_pipe" + CFLAGS="$_opt $_debug $_pipe" WARNFLAGS="-Wall -Wno-switch -Wno-logical-op-parentheses -Wpointer-arith -Wundef -Wno-pointer-sign -Wmissing-prototypes" ERRORFLAGS="-Werror=implicit-function-declaration" elif test "$cc_vendor" != "gnu" ; then - CFLAGS="$_opt $_debug $_profile $_march $_mcpu $_pipe" + CFLAGS="$_opt $_debug $_pipe" else - CFLAGS="$_opt $_debug $_profile $_march $_mcpu $_pipe -ffast-math -fomit-frame-pointer" + CFLAGS="$_opt $_debug $_pipe -ffast-math -fomit-frame-pointer" WARNFLAGS="-Wall -Wno-switch -Wno-parentheses -Wpointer-arith -Wredundant-decls" ERRORFLAGS="-Werror-implicit-function-declaration" extra_ldflags="$extra_ldflags -ffast-math"