summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorMåns Rullgård <mans@mansr.com>2009-02-21 21:07:34 +0000
committerMåns Rullgård <mans@mansr.com>2009-02-21 21:07:34 +0000
commitc5200f175342c60a4860d9bfd6cd17a5995a385e (patch)
treed5eab3c0a51fc7567570aa875499aa1985397672 /configure
parent629687f62fbd85ea41abfd33fb2e864222a0dd29 (diff)
Add --sysroot and --sysinclude configure options
Some cross-compilers need these parameters, and we can't figure out the correct values. Originally committed as revision 17499 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure8
1 files changed, 7 insertions, 1 deletions
diff --git a/configure b/configure
index 7e8512642f..780154455a 100755
--- a/configure
+++ b/configure
@@ -174,6 +174,8 @@ show_help(){
echo " --source-path=PATH path to source code [$source_path]"
echo " --cross-prefix=PREFIX use PREFIX for compilation tools [$cross_prefix]"
echo " --enable-cross-compile assume a cross-compiler is used"
+ echo " --sysroot=PATH root of cross-build tree"
+ echo " --sysinclude=PATH location of cross-build system headers"
echo " --target-os=OS compiler targets OS [$target_os]"
echo " --target-exec=CMD command to run executables on target"
echo " --target-path=DIR path to view of build directory on target"
@@ -949,6 +951,8 @@ CMDLINE_SET="
logfile
nm
source_path
+ sysinclude
+ sysroot
target_exec
target_os
target_path
@@ -1316,7 +1320,9 @@ nm_default="${cross_prefix}${nm_default}"
ranlib="${cross_prefix}${ranlib}"
strip="${cross_prefix}${strip}"
-set_default cc nm
+sysinclude_default="${sysroot}/usr/include"
+
+set_default cc nm sysinclude
enabled cross_compile || host_cc_default=$cc
set_default host_cc