On 2015-02-27 12:58:06 +0100, Diego Biurrun wrote:
> On Fri, Feb 27, 2015 at 12:36:34AM +0100, Janne Grunau wrote:
> > --- a/configure
> > +++ b/configure
> > @@ -2566,11 +2566,20 @@ case "$toolchain" in
> >          add_cflags   -fno-strict-overflow -fstack-protector-all
> >          add_ldflags  -Wl,-z,relro -Wl,-z,now
> >      ;;
> > +    xcode-ios)
> > +   cc_default="$(xcrun -sdk iphoneos -f clang)"
> > +   sysroot_default="$(xcrun -sdk iphoneos --show-sdk-path)"
> > +   enable_weak cross_compile
> > +   target_os_default="darwin"
> > +    ;;
> 
> tabs

WTF! will fix

> >      ?*)
> >          die "Unknown toolchain $toolchain"
> >      ;;
> >  esac
> >  
> > +# set defaults for sysroot and target_os before they are used
> > +set_default sysroot target_os
> > +
> >  test -n "$cross_prefix" && enable cross_compile
> >  
> >  if enabled cross_compile; then
> > @@ -2587,7 +2596,7 @@ strip="${cross_prefix}${strip}"
> >  
> >  sysinclude_default="${sysroot}/usr/include"
> >  
> > -set_default arch cc pkg_config sysinclude target_exec target_os
> > +set_default arch cc pkg_config sysinclude target_exec
> >  enabled cross_compile || host_cc_default=$cc
> >  set_default host_cc
> 
> I wonder why you don't move the whole block.

because sysinclude_default depends on sysroot, i.e. set_default sysroot 
has to be called before sysinclude_default is set.

Janne

_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to