shithub: openh264

Download patch

ref: d75c539407217dc55d06c53a0cead8febdcba593
parent: 3b372806c06f10f634f6e8aa48aaab311422fde0
author: Martin Storsjö <[email protected]>
date: Mon Mar 20 05:50:59 EDT 2017

Make SDKROOT immediately assigned

This avoids re-expanding and rerunning the xcrun command for each time
the SDKROOT variable is used (i.e. once per file built).

--- a/build/platform-ios.mk
+++ b/build/platform-ios.mk
@@ -9,7 +9,7 @@
 endif
 SDK_MIN = 5.1
 
-SDKROOT = $(shell xcrun --sdk $(shell echo $(SDKTYPE) | tr A-Z a-z) --show-sdk-path)
+SDKROOT := $(shell xcrun --sdk $(shell echo $(SDKTYPE) | tr A-Z a-z) --show-sdk-path)
 CFLAGS += -arch $(ARCH) -isysroot $(SDKROOT) -miphoneos-version-min=$(SDK_MIN) -DAPPLE_IOS -fembed-bitcode
 LDFLAGS += -arch $(ARCH) -isysroot $(SDKROOT) -miphoneos-version-min=$(SDK_MIN)