|
Lines 6306-6340
Link Here
|
| 6306 |
############################################################################# |
6306 |
############################################################################# |
| 6307 |
|
6307 |
|
| 6308 |
# Checking for CFLAGS |
6308 |
# Checking for CFLAGS |
| 6309 |
_stripbinaries=yes |
6309 |
CFLAGS="custom" |
| 6310 |
if test "$_profile" != "" || test "$_debug" != "" ; then |
|
|
| 6311 |
CFLAGS="-W -Wall -O2 $_march $_mcpu $_debug $_profile" |
| 6312 |
if test "$_cc_major" -ge "3" ; then |
| 6313 |
CFLAGS=`echo "$CFLAGS" | sed -e 's/\(-Wall\)/\1 -Wno-unused-parameter/'` |
| 6314 |
fi |
| 6315 |
_stripbinaries=no |
| 6316 |
elif test -z "$CFLAGS" ; then |
| 6317 |
CFLAGS="-O4 $_march $_mcpu $_pipe -ffast-math -fomit-frame-pointer" |
| 6318 |
# always compile with '-g' if .developer: |
| 6319 |
if test -f ".developer" ; then |
| 6320 |
CFLAGS="-g $CFLAGS" |
| 6321 |
if (test "$_crash_debug" = auto) && (not mingw32) ; then |
| 6322 |
_crash_debug=yes |
| 6323 |
fi |
| 6324 |
_stripbinaries=no |
| 6325 |
fi |
| 6326 |
else |
| 6327 |
cat <<EOF |
| 6328 |
|
| 6329 |
MPlayer compilation will use the CFLAGS set by you, but: |
| 6330 |
|
| 6331 |
*** *** DO NOT REPORT BUGS IF IT DOES NOT COMPILE/WORK! *** *** |
| 6332 |
|
| 6333 |
It is strongly recommended to let MPlayer choose the correct CFLAGS! |
| 6334 |
To do so, execute 'CFLAGS= ./configure <options>' |
| 6335 |
|
| 6336 |
EOF |
| 6337 |
fi |
| 6338 |
|
6310 |
|
| 6339 |
echocheck "automatic gdb attach" |
6311 |
echocheck "automatic gdb attach" |
| 6340 |
if test "$_crash_debug" = yes ; then |
6312 |
if test "$_crash_debug" = yes ; then |