Skip to content

Commit

Permalink
Fix: target iOS 8 because the socket flag to support background mode …
Browse files Browse the repository at this point in the history
…is deprecated in latest 9.3
  • Loading branch information
serhiy serbin committed Aug 23, 2016
1 parent 6da135d commit c516b21
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions pjsip.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ LIB_PATHS=("pjlib/lib" \
"pjlib-util/lib" \
"pjmedia/lib" \
"pjnath/lib" \
"pjsip/lib" \
"third_party/lib")

OPENSSL_PREFIX=
Expand Down Expand Up @@ -151,30 +152,30 @@ function _build() {
}

function armv7() {
export CFLAGS=
export CFLAGS="-miphoneos-version-min=8.0"
export LDFLAGS=
_build "armv7"
}
function armv7s() {
export CFLAGS=
export CFLAGS="-miphoneos-version-min=8.0"
export LDFLAGS=
_build "armv7s"
}
function arm64() {
export CFLAGS=
export CFLAGS="-miphoneos-version-min=8.0"
export LDFLAGS=
_build "arm64"
}
function i386() {
export DEVPATH="`xcrun -sdk iphonesimulator --show-sdk-platform-path`/Developer"
export CFLAGS="-O2 -m32 -mios-simulator-version-min=7.0"
export LDFLAGS="-O2 -m32 -mios-simulator-version-min=7.0"
export CFLAGS="-O2 -m32 -mios-simulator-version-min=8.0"
export LDFLAGS="-O2 -m32 -mios-simulator-version-min=8.0"
_build "i386"
}
function x86_64() {
export DEVPATH="`xcrun -sdk iphonesimulator --show-sdk-platform-path`/Developer"
export CFLAGS="-O2 -m32 -mios-simulator-version-min=7.0"
export LDFLAGS="-O2 -m32 -mios-simulator-version-min=7.0"
export CFLAGS="-O2 -m32 -mios-simulator-version-min=8.0"
export LDFLAGS="-O2 -m32 -mios-simulator-version-min=8.0"
_build "x86_64"
}

Expand Down

0 comments on commit c516b21

Please sign in to comment.