[FFmpeg-cvslog] r20497 - trunk/configure

Alexander Strange astrange
Sat Nov 14 23:38:40 CET 2009


On Nov 10, 2009, at 7:57 AM, reimar wrote:

> Author: reimar
> Date: Tue Nov 10 13:57:28 2009
> New Revision: 20497
> 
> Log:
> Check if PIC is somehow already enabled (e.g. a compiler that enables it by default).
> This in particular ensures that -DPIC is set appropriately for YASM, which avoids
> linking failures on x86_64 for compilers that have PIE enabled by default
> (e.g. hardened Gentoo).
> It also makes the macho64 special-case hack adding -DPIC to YASMFLAGS obsolete.

This broke adding -mdynamic-no-pic on Darwin again.

Is it safe to move the check after the OS section?

-------------- next part --------------
A non-text attachment was scrubbed...
Name: check_pic_after_os.diff
Type: application/octet-stream
Size: 554 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-cvslog/attachments/20091114/454168a3/attachment.obj>
-------------- next part --------------

> Modified:
>   trunk/configure
> 
> Modified: trunk/configure
> ==============================================================================
> --- trunk/configure	Tue Nov 10 05:17:18 2009	(r20496)
> +++ trunk/configure	Tue Nov 10 13:57:28 2009	(r20497)
> @@ -1876,6 +1876,9 @@ esac
> 
> enable $arch $subarch
> enabled spic && enable pic
> +# This is the same check as used in libavutil/internal.h
> +# to enable RIP-relative addressing for x86_64 inline asm.
> +check_cpp_condition stdlib.h "defined(__PIC__) || defined(__pic__) || defined(PIC)" && enable pic





More information about the ffmpeg-cvslog mailing list