[FFmpeg-devel] [PATCH]Set isysroot instead of sysroot on darwin

Michael Niedermayer michaelni at gmx.at
Tue Mar 18 02:27:40 CET 2014


On Sun, Mar 16, 2014 at 03:08:04PM +0100, Carl Eugen Hoyos wrote:
> Hi!
> 
> Newer versions of clang on Mac OSX ignore (?) --sysroot, it at least
> doesn't work as expected from how gcc works. isysroot (alone!)
> works, this page implies that this is expected behaviour on darwin:
> http://gcc.gnu.org/ml/gcc-patches/2010-09/msg00292.html
> Attached patch fixes the issues I see on 10.9.
> 
> See also http://git.videolan.org/?p=ffmpeg.git;a=commitdiff;h=00ba041c
> 
> Please comment, Carl Eugen

>  configure |    5 +++++
>  1 file changed, 5 insertions(+)
> 89d45054153011c6f9ec006f059b61d92a49736d  patchisysrootdarwin.diff
> diff --git a/configure b/configure
> index 34200a3..c633364 100755
> --- a/configure
> +++ b/configure
> @@ -3391,8 +3391,13 @@ add_asflags $extra_cflags
>  if test -n "$sysroot"; then
>      case "$cc_type" in
>          gcc|llvm_gcc|clang)
> +            if test "$target_os" = darwin; then
> +                add_cppflags -isysroot "$sysroot"
> +                add_ldflags -isysroot "$sysroot"
> +            else
>              add_cppflags --sysroot="$sysroot"
>              add_ldflags --sysroot="$sysroot"
> +            fi

i cant really comment on this
but if it doesnt work without this then its probably a good idea
to apply

[...]

-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

If you think the mosad wants you dead since a long time then you are either
wrong or dead since a long time.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20140318/7f37e8ab/attachment.asc>


More information about the ffmpeg-devel mailing list