[FFmpeg-devel] [PATCH] Use cross-prefix for strip in darwin.

Ramiro Polla ramiro.polla
Sun Jun 20 18:59:38 CEST 2010


2010/6/20 M?ns Rullg?rd <mans at mansr.com>:
> Ramiro Polla <ramiro.polla at gmail.com> writes:
>> $subj
>>
>> Index: configure
>> ===================================================================
>> --- configure (revision 22694)
>> +++ configure (working copy)
>> @@ -2182,7 +2182,7 @@
>> ? ? ?darwin)
>> ? ? ? ? ?enable malloc_aligned
>> ? ? ? ? ?SHFLAGS='-dynamiclib -Wl,-single_module -Wl,-install_name,$(SHLIBDIR)/$(SLIBNAME),-current_version,$(LIBVERSION),-compatibility_version,$(LIBMAJOR) -Wl,-read_only_relocs,suppress'
>> - ? ? ? ?strip="strip -x"
>> + ? ? ? ?strip="${cross_prefix}strip -x"
>> ? ? ? ? ?FFLDFLAGS="-Wl,-dynamic,-search_paths_first"
>> ? ? ? ? ?SLIBSUF=".dylib"
>> ? ? ? ? ?SLIBNAME_WITH_VERSION='$(SLIBPREF)$(FULLNAME).$(LIBVERSION)$(SLIBSUF)'
>
> Sorry for the delay. ?strip already has $cross_prefix applied. ?This
> seems like a better patch:
>
> diff --git a/configure b/configure
> index 3246724..81158f1 100755
> --- a/configure
> +++ b/configure
> @@ -2164,7 +2164,7 @@ case $target_os in
> ? ? darwin)
> ? ? ? ? enable malloc_aligned
> ? ? ? ? SHFLAGS='-dynamiclib -Wl,-single_module -Wl,-install_name,$(SHLIBDIR)/$(SLIBNAME),-current_version,$(LIBVERSION),-compatibility_version,$(LIBMAJOR) -Wl,-read_only_relocs,suppress'
> - ? ? ? ?strip="strip -x"
> + ? ? ? ?strip="${strip} -x"
> ? ? ? ? FFLDFLAGS="-Wl,-dynamic,-search_paths_first"
> ? ? ? ? SLIBSUF=".dylib"
> ? ? ? ? SLIBNAME_WITH_VERSION='$(SLIBPREF)$(FULLNAME).$(LIBVERSION)$(SLIBSUF)'

Thanks, that worked too. Applied.



More information about the ffmpeg-devel mailing list