[Ffmpeg-devel] [patch] apple-intel shared library compile fix
Tom Harper
d.thomas.harper
Tue Dec 19 20:31:05 CET 2006
Hi,
So compiling shared libraries on intel-apple is currently broken in svn.
Following is the build info/compiler error (just fyi):
cc -dynamiclib -Wl,-single_module
-Wl,-install_name,/usr/local/lib/libavcodec.dylib,-current_version,51.1.0,-compatibility_version,51.1.0
-Wl,-dynamic,-search_paths_first -o libavcodec.51.dylib bitstream.o
utils.o allcodecs.o mpegvideo.o jrevdct.o jfdctfst.o jfdctint.o
mjpeg.o resample.o resample2.o dsputil.o motion_est.o imgconvert.o
mpeg12.o mpegaudiodec.o simple_idct.o ratecontrol.o eval.o
error_resilience.o fft.o mdct.o raw.o golomb.o cabac.o faandct.o
parser.o h264idct.o rangecoder.o pnm.o h263.o msmpeg4.o h263dec.o
opt.o bitstream_filter.o audioconvert.o imgresample.o i386/fdct_mmx.o
i386/cputest.o i386/dsputil_mmx.o i386/mpegvideo_mmx.o
i386/motion_est_mmx.o i386/simple_idct_mmx.o i386/idct_mmx_xvid.o
i386/fft_sse.o i386/fft_3dn.o i386/fft_3dn2.o i386/snowdsp_mmx.o
h264.o mpegaudio.o snow.o
-L"/Users/arosenberg/source/ffmpeg"/libavutil -lavutil -lz
ld: i386/dsputil_mmx.o has local relocation entries in non-writable
section (__TEXT,__text)
/usr/bin/libtool: internal link edit command failed
make[1]: *** [libavcodec.51.dylib] Error 1
make: *** [lib] Error 2
Patch attached.
Tom
-------------- next part --------------
Index: configure
===================================================================
--- configure (revision 7332)
+++ configure (working copy)
@@ -750,7 +750,7 @@
audio_oss="no"
dv1394="no"
need_memalign="no"
-SHFLAGS="-dynamiclib -Wl,-single_module -Wl,-install_name,\$(shlibdir)/\$(SLIBNAME),-current_version,\$(SPPVERSION),-compatibility_version,\$(SPPVERSION)"
+SHFLAGS="-dynamiclib -Wl,-single_module -Wl,-install_name,\$(shlibdir)/\$(SLIBNAME),-current_version,\$(SPPVERSION),-compatibility_version,\$(SPPVERSION) -read_only_relocs suppress"
VHOOKSHFLAGS='-dynamiclib -Wl,-single_module -flat_namespace -undefined suppress -Wl,-install_name,$(shlibdir)/vhook/$@'
extralibs=""
strip="strip -x"
More information about the ffmpeg-devel
mailing list