Commit d5c58d79 authored by jehan's avatar jehan

fix openh264 bitcode compilation

parent c150b74f
......@@ -57,6 +57,10 @@ if (APPLE)
else()
set(EP_openh264_ADDITIONAL_OPTIONS "OS=\"ios\" ARCH=\"i386\"")
endif()
#XCode7 allows bitcode
if (NOT ${XCODE_VERSION} VERSION_LESS 7)
set(EP_openh264_EXTRA_CFLAGS "-fembed-bitcode")
endif()
else()
if(CMAKE_OSX_ARCHITECTURES STREQUAL "x86_64")
set(EP_openh264_ADDITIONAL_OPTIONS "ARCH=\"x86_64\"")
......
......@@ -11,7 +11,7 @@ export NM="@AUTOTOOLS_NM@"
export ASFLAGS="@LINPHONE_BUILDER_ASFLAGS@"
export CPPFLAGS="@LINPHONE_BUILDER_CPPFLAGS@"
export CFLAGS="@LINPHONE_BUILDER_CFLAGS@"
export CFLAGS="@LINPHONE_BUILDER_CFLAGS@ @EP_openh264_EXTRA_CFLAGS@"
export CXXFLAGS="@LINPHONE_BUILDER_CXXFLAGS@"
export OBJCFLAGS="@LINPHONE_BUILDER_OBJCFLAGS@"
export LDFLAGS="@LINPHONE_BUILDER_LDFLAGS@"
......
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