[FFmpeg-devel] [PATCH]Enable pic on OSX for x86_64

Michael Niedermayer michaelni at gmx.at
Sat Feb 7 20:44:59 CET 2015


On Sat, Feb 07, 2015 at 04:31:48PM +0100, Carl Eugen Hoyos wrote:
> Hi!
> 
> Attached patch allows compilation with icc on OSX.
> 
> Please comment, Carl Eugen

>  configure |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 54159746713608d35cac3531e37dfaf386fbcf46  patchosxpic.diff
> diff --git a/configure b/configure
> index 0c209c5..c019cde 100755
> --- a/configure
> +++ b/configure
> @@ -4068,7 +4068,7 @@ case $target_os in
>          SLIBNAME_WITH_VERSION='$(SLIBPREF)$(FULLNAME).$(LIBVERSION)$(SLIBSUF)'
>          SLIBNAME_WITH_MAJOR='$(SLIBPREF)$(FULLNAME).$(LIBMAJOR)$(SLIBSUF)'
>          objformat="macho"
> -        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

[...]

-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

The misfortune of the wise is better than the prosperity of the fool.
-- Epicurus
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20150207/be580586/attachment.asc>


More information about the ffmpeg-devel mailing list