]> git.sesse.net Git - ffmpeg/commit
configure: Automatically add -isysroot for darwin if --sysroot is specified
authorMartin Storsjö <martin@martin.st>
Wed, 21 Jun 2017 13:54:22 +0000 (16:54 +0300)
committerMartin Storsjö <martin@martin.st>
Wed, 21 Jun 2017 19:32:52 +0000 (22:32 +0300)
commit333a34da3a6d13155de480e7d16ec5fec7f4cd6c
tree4d4a8bb9033c7a8d1ae7655d737ae6ef4883c7ab
parentf519e131c101ae3948dabf1f7f598efbff5fb536
configure: Automatically add -isysroot for darwin if --sysroot is specified

Check the existing flags in the cc/cflags/cppflags/ldflags for
occurrances of -isysroot; if none is found but --sysroot was specified,
set -isysroot to the same value as --sysroot.

This simplifies configuring cross-builds for iOS, if the global
environment variable SDKROOT isn't set.

Signed-off-by: Martin Storsjö <martin@martin.st>
configure