[MPlayer-dev-eng] Linking mplayer fails

Reimar Döffinger Reimar.Doeffinger at gmx.de
Tue Apr 2 02:59:27 CEST 2013


On 2 Apr 2013, at 02:36, Reimar Döffinger <Reimar.Doeffinger at gmx.de> wrote:
>> so you still haven't really explained how you thought the test might
>> work without telling the compiler to generate pic code either by using
>> -fpic or -fpie other than it just works for you on osx because it's
>> enabled by default so i won't really bother to think through this at
>> all.
> 
> This makes no sense at all to me
> 1) we don't want PIC code, we only want PIE. The test should figure out if that means our asm code has to be PIC
> 2) completely opposite to what you say, OSX (and only clang) is where the code/test fails to work as intended.

Correction/Clarification: where I wrote PIE I meant "relocateable executable", as enabled with -pie during linking (which has no effect on generated code). I did not consider the case of -fpie, which instead affects code generation. And the detection whether we need to add -fpie (if I remember correctly we have such, but I didn't check the code) might be reused as a heuristic whether we need to enable PIC as well.


More information about the MPlayer-dev-eng mailing list