Check if PIC is somehow already enabled (e.g. a compiler that enables it by default).
authorReimar Döffinger <Reimar.Doeffinger@gmx.de>
Tue, 10 Nov 2009 12:57:28 +0000 (12:57 +0000)
committerReimar Döffinger <Reimar.Doeffinger@gmx.de>
Tue, 10 Nov 2009 12:57:28 +0000 (12:57 +0000)
commit5755bc88e51a82dd00897d840df2a688631da768
tree4a3696f43b2874f2c2c4319db38fb0febfbbc5ff
parent00fa73f052c1c0c0185ee4d2accb8fba065132f1
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.

Originally committed as revision 20497 to svn://svn.ffmpeg.org/ffmpeg/trunk
configure