IOS: Uses the SDKROOT variable only if provided

This commit is contained in:
Vincent Bénony 2015-12-02 17:19:45 +01:00
parent 304bffa90e
commit 3831caaac5

11
configure vendored
View File

@ -3001,9 +3001,14 @@ case $_backend in
append_var LIBS "-lobjc -framework UIKit -framework CoreGraphics -framework OpenGLES"
append_var LIBS "-framework QuartzCore -framework CoreFoundation -framework Foundation"
append_var LIBS "-framework AudioToolbox -framework CoreAudio"
append_var LDFLAGS "-isysroot $SDKROOT -miphoneos-version-min=7.1 -arch armv7"
append_var CFLAGS "-isysroot $SDKROOT -miphoneos-version-min=7.1 -arch armv7"
append_var CXXFLAGS "-isysroot $SDKROOT -miphoneos-version-min=7.1 -arch armv7"
append_var LDFLAGS "-miphoneos-version-min=7.1 -arch armv7"
append_var CFLAGS "-miphoneos-version-min=7.1 -arch armv7"
append_var CXXFLAGS "-miphoneos-version-min=7.1 -arch armv7"
if test -n "$SDKROOT"; then
append_var LDFLAGS "-isysroot $SDKROOT"
append_var CFLAGS "-isysroot $SDKROOT"
append_var CXXFLAGS "-isysroot $SDKROOT"
fi
;;
linuxmoto)
append_var DEFINES "-DLINUXMOTO"