[FFmpeg-trac] #2890(build system:new): Compile ffmpeg for Android on OSX failes (ld)

FFmpeg trac at avcodec.org
Thu Aug 22 22:53:42 CEST 2013

#2890: Compile ffmpeg for Android on OSX failes (ld)
             Reporter:  fscz         |                    Owner:
                 Type:  defect       |                   Status:  new
             Priority:  normal       |                Component:  build
              Version:  git-master   |  system
             Keywords:  build ld     |               Resolution:
             Blocking:               |               Blocked By:
Analyzed by developer:  0            |  Reproduced by developer:  0

Comment (by fscz):

 -single_module is added to the linker from the configure script (3496):
 SHFLAGS='-dynamiclib -Wl,-single_module
 are also unknown

 also problematic is the following line (3499)
 add_ldflags -Wl,-dynamic,-search_paths_first
 as search_paths_first throws an error, too

 If i remove all those flags and write the following:
 add_ldflags -WL,-dynamic

 I get the following error:
 LD      libavutil/libavutil.52.dylib
 in function _start:crtbrand.c(.text+0x78): error: undefined reference to
 collect2: ld returned 1 exit status
 make: *** [libavutil/libavutil.52.dylib] Error 1

Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/2890#comment:1>
FFmpeg <http://ffmpeg.org>
FFmpeg issue tracker

More information about the FFmpeg-trac mailing list