[FFmpeg-devel] [PATCH]Enable pic on OSX for x86_64
Carl Eugen Hoyos
cehoyos at ag.or.at
Sat Feb 7 20:53:12 CET 2015
Michael Niedermayer <michaelni <at> gmx.at> writes:
> > - enabled x86_64 && objformat="macho64"
> > + enabled x86_64 && objformat="macho64" && enable pic
> > enabled_any pic shared ||
>
> can you explain what fails without this ?
>
> this:
> check_cpp_condition stdlib.h "defined(__PIC__) ||
> defined(__pic__) || defined(PIC)" && enable_weak pic
>
> should set pic i think
__PIC__ is not defined because of -mdynamic-no-pic
that gets added earlier to the icc cfags.
The others are never set.
I believe that clang ignores -mdynamic-no-pic if
-DPIC is set while icc fails for "-mdynamic-no-pic
-DPIC".
Carl Eugen
More information about the ffmpeg-devel
mailing list