summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2012-11-15 14:34:34 +0100
committerwm4 <wm4@nowhere>2012-11-16 21:21:14 +0100
commit52fe0a4fe2bec8a3b4e7a8b5b6fa667504bced12 (patch)
tree3958ba70dc17162adebbf5fab070dd9f76fd51e3 /configure
parentd7de05f6c15d29b11a2d21da1b071d625f060af8 (diff)
downloadmpv-52fe0a4fe2bec8a3b4e7a8b5b6fa667504bced12.tar.bz2
mpv-52fe0a4fe2bec8a3b4e7a8b5b6fa667504bced12.tar.xz
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.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure15
1 files 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"