[Libav-user] ff_log2_tab defined multiple times in the fmpeg 1.1 libraries, bug or feature ??
Lars Hammarstrand
lars.hammarstrand at gmail.com
Wed Feb 13 18:55:36 CET 2013
> There's your explanation (from `man gcc`):
> -all_load
> Loads all members of static archive libraries. See man ld(1)
for more information.
Good eyes and a very observant mind, thank you very much ;-)
I'll check the reason behind and if we can disable "-all_load" since this
feels better than cleaning out duplicate objects from the ffmpeg libs.
Thought I'm not sure how this will work on other platforms like win, osx,
linux and android. If there are no obvious reasons to keep the current
solution with "#include source" it would be nice if someone could implement
an alternative solution for the long term.
--
2013/2/13 "René J.V. Bertin" <rjvbertin at gmail.com>
>
> On Feb 13, 2013, at 18:14, Lars Hammarstrand wrote:
>
> > In general doing "#include ../common/source.c" with global variables is
> probably a bad idea if you want to avoid duplicate symbols in "public"
> libraries.
>
> Agreed, hence my question if there's a reason for the duplicate
> definition. I'm guessing it just never tripped an error, though.
>
> >
> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++
> -arch i386 <SNIP> -filelist
> /Users/lars/Library/Developer/Xcode/DerivedData/XBMC-cowrsziekmorhqejlbarbpswsqbh/Build/Intermediates/XBMC.build/Debug/XBMC.build/Objects-normal/i386/XBMC.LinkFileList
> -mmacosx-version-min=10.6 -headerpad_max_install_names -all_load
>
> ^^^^^^^^^
>
> There's your explanation (from `man gcc`):
> -all_load
> Loads all members of static archive libraries. See man ld(1)
> for more information.
>
> Now the question is of course, do *you* need that option, linking what
> appears to be an executable?
>
> _______________________________________________
> Libav-user mailing list
> Libav-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/libav-user
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://ffmpeg.org/pipermail/libav-user/attachments/20130213/53b380d6/attachment.html>
More information about the Libav-user
mailing list