[MPlayer-dev-eng] Linking mplayer fails

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


> so, tell me. which flag in there tells the compiler to generate pic
> code?

None.

> the only reason the test worked for you was that on osx pic seems
> to be enabled by default.

This "enabled by default" condition is the only thing the test checks for.

> now when you do the test you actually do pass
> -fpie so (not surprisingly) you find that pic is enabled:

In most cases -fpie should not have the effect of enabling PIC, you are giving far too little information for me to follow your explanations.
Also the test was and is again after -fpie was added to the command-line.

> 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.



More information about the MPlayer-dev-eng mailing list