[FFmpeg-devel] [PATCH] mipsen require compilation with -DPIC since gcc-4.3

Måns Rullgård mans
Tue Sep 23 12:29:36 CEST 2008


Reinhard Tartler wrote:
> M?ns Rullg?rd <mans at mansr.com> writes:
>
>> That is inaccurate.  If I understood the discussion correctly, gcc
>> always supported non-PIC, but PIC was default prior to 4.3.
>
> No, according to the gcc changelog I quoted before, until gcc-4.2
> non-PIC was not supported at all, neither for libraries nor for
> executables and defaulted to '-mshared-code'. Gcc 4.3 introduces support
> for non-PIC executables and defaults to '-mno-shared-code' unless
> overriden by '-fpic, -fPIC, -fpie or -fPIE.' [1].
>
>> Building entirely statically linked MIPS executables has been supported
>> by gcc/ld since the beginning of time, or at least since I started doing
>> it on a daily basis years ago.
>
> No one questioned that. Your static versions of ffmpeg however were
> implicitly compiled position independent. This default has changed with
> gcc-4.3.

Please read my follow-up email.  If gcc didn't support non-PIC before
4.3, can you please explain what it is I've been building all these years?
I can assure you that the code is very much position-dependent.

Dynamically linked executables may have had different restrictions, but
that's not quite the same thing.

-- 
M?ns Rullg?rd
mans at mansr.com




More information about the ffmpeg-devel mailing list