From: *Carl Eugen Hoyos* <[email protected]>

Hi!

Attached patch simplifies iOS configure lines.

Please comment, Carl Eugen
From 40296347384e5d975885ab94b04956f8ffbd15f7 Mon Sep 17 00:00:00 2001
From: Carl Eugen Hoyos <[email protected]>
Date: Sun, 23 Mar 2014 17:57:32 +0100
Subject: [PATCH] Always pass the configure option sysroot to --sysroot and
 -isysroot.

On darwin, --sysroot may be ignored.
---
 configure | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/configure b/configure
index 0b90d7d..70b69f8 100755
--- a/configure
+++ b/configure
@@ -3398,6 +3398,9 @@ if test -n "$sysroot"; then
         gcc|llvm_gcc|clang)
             add_cppflags --sysroot="$sysroot"
             add_ldflags --sysroot="$sysroot"
+# On Darwin --sysroot may be ignored, -isysroot always affects headers and linking
+            add_cppflags -isysroot "$sysroot"
+            add_ldflags -isysroot "$sysroot"
         ;;
         tms470)
             add_cppflags -I"$sysinclude"
-- 
1.8.5.2 (Apple Git-48)

_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to