shithub: openh264

Download patch

ref: c247c5a05dbdfcf3f499d6a4b57f05cd68e081d7
parent: 028d39077f7c5a066c8faf79acee3e14c624a765
parent: 2ca8ef4bd3a94e0589260260e3fa2b488ada489f
author: Licai Guo <[email protected]>
date: Wed Mar 19 13:19:55 EDT 2014

Merge pull request #546 from mstorsjo/ios-sdk-version

Automatically pick the latest installed iOS SDK when building with make

--- a/build/platform-ios.mk
+++ b/build/platform-ios.mk
@@ -2,12 +2,12 @@
 include build/platform-darwin.mk
 CXX = clang++
 CC = clang
-SDK = 7.0
 ifneq ($(filter %86 x86_64, $(ARCH)),)
 SDKTYPE = iPhoneSimulator
 else
 SDKTYPE = iPhoneOS
 endif
+SDK = $(shell xcrun --sdk $(shell echo $(SDKTYPE) | tr A-Z a-z) --show-sdk-version)
 SDK_MIN = 5.1
 
 SDKROOT = /Applications/Xcode.app/Contents/Developer/Platforms/$(SDKTYPE).platform/Developer/SDKs/$(SDKTYPE)$(SDK).sdk