Skip to content
Browse files

Fixed building on OS X for 32-bit

  • Loading branch information...
1 parent 7554a9e commit 6a092ddb8ea17c1e40f0640ec43176869c237121 @CleanCut CleanCut committed Dec 10, 2011
Showing with 11 additions and 7 deletions.
  1. +9 −5 Makefile.darwin-x86-32
  2. +2 −2 ffmpeg.configure.darwin-x86-32
View
14 Makefile.darwin-x86-32
@@ -1,10 +1,13 @@
LIBNAME=$(OUTDIR)/libavbin.$(AVBIN_VERSION).dylib
+DARWIN_VERSION=$(shell uname -r | cut -d . -f 1)
-CFLAGS += -O3 -mmacosx-version-min=10.3.9
+CFLAGS += -O3 -mmacosx-version-min=10.6
LDFLAGS += -dylib \
- -read_only_relocs suppress \
-single_module \
- -install_name /usr/local/lib/libavbin.dylib
+ -macosx_version_min 10.6 \
+ -arch i386 \
+ -install_name @rpath/libavbin.dylib
+# -read_only_relocs suppress \
STATIC_LIBS = $(FFMPEG)/libavformat/libavformat.a \
$(FFMPEG)/libavcodec/libavcodec.a \
@@ -14,8 +17,9 @@ STATIC_LIBS = $(FFMPEG)/libavformat/libavformat.a \
LIBS = -lSystem \
-lz \
- -lbz2 \
- -L/usr/lib/gcc/i686-apple-darwin9/4.0.1 -lgcc
+ -lbz2 \
+ -L/usr/lib/gcc/i686-apple-darwin$(DARWIN_VERSION)/4.2.1 \
+ -lgcc
$(LIBNAME) : $(OBJNAME) $(OUTDIR)
$(LD) $(LDFLAGS) -o $@ $< $(STATIC_LIBS) $(LIBS)
View
4 ffmpeg.configure.darwin-x86-32
@@ -4,8 +4,8 @@
--arch=x86_32
--cpu=i686
---extra-cflags='-isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.3.9'
---extra-ldflags='-isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.3.9'
+--extra-cflags='-isysroot /Developer/SDKs/MacOSX10.6.sdk -mmacosx-version-min=10.6'
+--extra-ldflags='-isysroot /Developer/SDKs/MacOSX10.6.sdk -mmacosx-version-min=10.6'
# Currently broken on Darwin
#--disable-mmx

0 comments on commit 6a092dd

Please sign in to comment.
Something went wrong with that request. Please try again.