[Ffmpeg-devel] [PATCH] Respect compiler's __PIC__ definition

Diego 'Flameeyes' Pettenò flameeyes
Wed Jul 5 18:03:13 CEST 2006


Here it is another try to achieve the same obvious result: this time it just 
patches two files, common.h (in libavutil) and postproc_internal.h (as 
libpostproc seems not to include common.h).

What it does is defining the PIC macro when __PIC__ or __pic__ macros are 
defined (the latter is rare but not impossible, it's enabled by -fpic, 
suggested by Ned Ludd of Gentoo).

This is almost the least intrusive change I can think of (another would be 
including common.h inside postproc_internal.h so that the code is not 
duplicated, but probably a bad idea considering the parsing/compiling time.

Hope this time it would be better. (Yes, I am stubborn).

-- 
Diego "Flameeyes" Petten? - http://farragut.flameeyes.is-a-geek.org/
Gentoo/Alt lead, Gentoo/FreeBSD, Video, AMD64, Sound, PAM, KDE
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ffmpeg-pic.patch
Type: text/x-diff
Size: 1621 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20060705/d9c5f3fd/attachment.patch>
-------------- 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/20060705/d9c5f3fd/attachment.pgp>



More information about the ffmpeg-devel mailing list