Commit f0963747 authored by banan's avatar banan

Support setting the debuglevel (-g level) with --enable-debug=#

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@12298 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent b0ad281d
......@@ -1066,6 +1066,8 @@ for opt do
;;
--disable-devices) disable $INDEV_LIST $OUTDEV_LIST
;;
--enable-debug=*) debuglevel="$optval"
;;
--enable-*=*|--disable-*=*)
eval `echo "$opt" | sed 's/=/-/;s/--/action=/;s/-/ thing=/;s/-/ name=/'`
case "$thing" in
......@@ -1795,7 +1797,7 @@ check_header X11/extensions/XShm.h &&
check_func XOpenDisplay -lX11 &&
check_func XShmCreateImage -lX11 -lXext
enabled debug && add_cflags -g
enabled debug && add_cflags -g"$debuglevel"
# add some useful compiler flags if supported
check_cflags -Wdeclaration-after-statement
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment