[MPlayer-dev-eng] [PATCH] detect PIC and set -DPIC in YASMFLAGS

Diego Biurrun diego at biurrun.de
Sun Nov 8 05:03:02 CET 2009


On Sun, Nov 08, 2009 at 12:47:36AM +0100, Reimar Döffinger wrote:
> this is necessary to compile with YASM enabled on amd64 systems that
> have PIC/PIE enabled by default, e.g. hardened Gentoo.
> --- configure   (revision 29850)
> +++ configure   (working copy)
> @@ -2580,6 +2580,20 @@
>  
> +echocheck "PIC"
> +pic=no
> +cat > $TMPC << EOF
> +int main(void) {
> +#if defined(__PIC__) || defined(__pic__) || defined(PIC)
> +    return 0;
> +#else
> +    error please!

?

Diego



More information about the MPlayer-dev-eng mailing list