[FFmpeg-devel] [PATCH] fix configure when compiling with -fmudflap
Måns Rullgård
mans
Sun May 4 18:15:18 CEST 2008
matthieu castet <castet.matthieu at free.fr> writes:
> Hi,
>
> if I compile ffmpeg with -fmudflap [1], configure fill EXTERN_PREFIX
> with garbage (some mudflap symbol).
>
> The attach patch should fix the problem.
>
> Matthieu
>
> [1] configuration: --enable-gpl --enable-shared
> --prefix=/usr/local/stow/ffmpegcvs --enable-postproc --cpu=athlon-xp
> --extra-cflags=-fmudflap -fmudflapir
> -I/usr/lib/gcc/i486-linux-gnu/4.3/include --extra-ldflags=-fmudflap
> -fmudflapir -lmudflap -L/usr/lib/gcc/i486-linux-gnu/4.3
>
> Index: configure
> ===================================================================
> --- configure (r?vision 13049)
> +++ configure (copie de travail)
> @@ -1473,7 +1473,7 @@
> check_cc <<EOF || die "Symbol mangling check failed."
> int ff_extern;
> EOF
> -sym=$($nm -P -g $TMPO)
> +sym=$($nm -P -g $TMPO | grep ff_extern)
> extern_prefix=${sym%%ff_extern*}
>
> check_asm inline_asm '""'
OK
--
M?ns Rullg?rd
mans at mansr.com
More information about the ffmpeg-devel
mailing list