[x264-devel] [PATCH] Fix shared libs on MacOSX

alex gao madfxgao at gmail.com
Fri Mar 28 13:31:16 CET 2008


Hi,ismail

After using your patch v1 or v2, with --enable-shared option and Xcode
3.1 beta1, I still meet error:

ld warning: option -s is obsolete and being ignored
ld: absolute addressing (perhaps -mdynamic-no-pic) used in
_x264_cabac_encode_decision from common/x86/cabac-a.o not allowed in
slidable image. Use '-read_only_relocs suppress' to enable text relocs
collect2: ld returned 1 exit status
make: *** [libx264.dylib.58] Error 1

So I add option -read_only_relocs suppress to gcc, and it works fine

2008/3/26 İsmail Dönmez <ismail at namtrac.org>:
> On Wed, Mar 26, 2008 at 12:26 AM, İsmail Dönmez <ismail at namtrac.org> wrote:
>  > Hi,
>  >
>  >  x264 build system hardcodes .so as shared file extension but on MacOSX
>  >  dylib is used. Attached patch updates build system to produce dylib
>  >  files on MacOSX, tested with ffmpeg. Currently versioning is just set
>  >  to 0.0.0 so it might need some more fixup later on.
>
>  Attached is an improved version which eliminates code duplication.
>  Review welcome.
>
>
>
>  Regards,
>  ismail
>
>  --
>  Never learn by your mistakes, if you do you may never dare to try again.
>
> _______________________________________________
>  x264-devel mailing list
>  x264-devel at videolan.org
>  http://mailman.videolan.org/listinfo/x264-devel
>
>


More information about the x264-devel mailing list