Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMåns Rullgård <mans@mansr.com>2009-03-09 01:11:24 +0300
committerMåns Rullgård <mans@mansr.com>2009-03-09 01:11:24 +0300
commit82bb33290ef1e4eb79d4364ba0d8ba1a184f1d86 (patch)
tree91e4ce3a931108339aa3e2e995db8d7d7869c2b0 /configure
parent6b43d2d07513ffb7fc3ee3788b3ddcf436614c1e (diff)
Allow different executable suffix for host and target
Originally committed as revision 17885 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure14
1 files changed, 11 insertions, 3 deletions
diff --git a/configure b/configure
index 107ed069f3..d5323ec9ac 100755
--- a/configure
+++ b/configure
@@ -954,6 +954,7 @@ CMDLINE_SET="
host_cflags
host_ldflags
host_libs
+ host_os
logfile
nm
source_path
@@ -1162,6 +1163,7 @@ cpu="generic"
# OS
target_os=$(tolower $(uname -s))
+host_os=$target_os
# configurable options
enable debug
@@ -1325,9 +1327,14 @@ set_default as cc nm sysinclude
enabled cross_compile || host_cc_default=$cc
set_default host_cc
-case $target_os in
- mingw32*|cygwin*|*-dos|freedos|opendos|os/2*) EXESUF=.exe ;;
-esac
+exesuf() {
+ case $1 in
+ mingw32*|cygwin*|*-dos|freedos|opendos|os/2*) echo .exe ;;
+ esac
+}
+
+EXESUF=$(exesuf $target_os)
+HOSTEXESUF=$(exesuf $host_os)
# set temporary file name
: ${TMPDIR:=$TEMPDIR}
@@ -2376,6 +2383,7 @@ echo "EXTRA_VERSION=$extra_version" >> config.mak
echo "DEPEND_CMD=$DEPEND_CMD" >> config.mak
echo "HOSTCC=$host_cc" >> config.mak
echo "HOSTCFLAGS=$host_cflags" >> config.mak
+echo "HOSTEXESUF=$HOSTEXESUF" >> config.mak
echo "HOSTLDFLAGS=$host_ldflags" >> config.mak
echo "HOSTLIBS=$host_libs" >> config.mak
echo "TARGET_EXEC=$target_exec" >> config.mak