Commit f6c4e22e authored by Felix Paul Kühne's avatar Felix Paul Kühne

contrib/ffmpeg: cleaned up compilation for iOS

parent 3ef9d0a7
......@@ -70,7 +70,10 @@ FFMPEGCONF += --cpu=core2
endif
endif
ifdef HAVE_IOS
FFMPEGCONF += --as="$(TOPSRC)/../extras/tools/gas/gas-preprocessor.pl $(CC)" --enable-pic
FFMPEGCONF += --as="$(AS)" --enable-pic
ifeq ($(ARCH), arm)
FFMPEGCONF += --cpu=cortex-a8
endif
endif
# Linux
......
......@@ -150,6 +150,11 @@ endif
ifdef HAVE_IOS
CC=xcrun clang
CXX=xcrun clang++
ifeq ($(ARCH), arm)
AS=perl $(abspath ../../extras/tools/build/bin/gas-preprocessor.pl) $(CC)
else
AS=xcrun as
endif
AR=xcrun ar
LD=xcrun ld
STRIP=xcrun strip
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment