[Ffmpeg-devel] [PATCH] Don't use --as-needed for every operating system

Diego 'Flameeyes' Pettenò flameeyes
Fri Oct 13 23:55:09 CEST 2006


As per summary, --as-needed LDFLAG cannot be used safely for every operating 
system.

Currently gcc (that is the first user of it) consider it working only for 
Linux, because on at least FreeBSD and DragonFly it's not usable (by design).

The reason is that -pthread for libraries is a no-op, while on final 
executables it brings in -lpthread, even if it does not resolve local 
unresolved symbols, to link the libraries using pthreads themselves. 
With --as-needed, the final link to libpthread is then discarded, resulting 
in unusable libav* libraries.

HTH,
-- 
Diego "Flameeyes" Petten? - http://farragut.flameeyes.is-a-geek.org/
Gentoo/Alt lead, Gentoo/FreeBSD, Video, Sound, ALSA, PAM, KDE, CJK, Ruby ...
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ffmpeg-asneeded
Type: text/x-diff
Size: 874 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20061013/684b86b3/attachment.diff>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20061013/684b86b3/attachment.pgp>



More information about the ffmpeg-devel mailing list