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>2007-02-17 21:35:35 +0300
committerMåns Rullgård <mans@mansr.com>2007-02-17 21:35:35 +0300
commit4ec9ec81227b1c0dd83487a851e3a2c7db0335e8 (patch)
tree461afa8d456108be3b6aaeaca7b4927b9dfc062c /configure
parentc597172e4354f8c63cf86f48f7d0f23d63c9efd3 (diff)
put mingw section together with other OS specifics
Originally committed as revision 8007 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure52
1 files changed, 23 insertions, 29 deletions
diff --git a/configure b/configure
index c3ef63fcab..5afd35c56a 100755
--- a/configure
+++ b/configure
@@ -1019,9 +1019,30 @@ case $targetos in
FFSERVERLDFLAGS=-Wl,-bind_at_load
;;
MINGW32*)
- # Note: the rest of the mingw32 config is done afterwards as mingw32
- # can be forced on the command line for Linux cross compilation.
mingw32="yes"
+ if enabled_all shared static; then
+ cat <<EOF
+You can only build one library type at once on MinGW.
+Specify --disable-static --enable-shared to only build
+the shared libraries. To build only the static libraries
+you do not need to pass additional options.
+EOF
+ exit 1
+ fi
+ dv1394="no"
+ ffserver="no"
+ network="no"
+ if enabled wince; then
+ protocols="no"
+ fi
+ SLIBPREF=""
+ SLIBSUF=".dll"
+ EXESUF=".exe"
+ SLIBNAME_WITH_VERSION='$(SLIBPREF)$(NAME)-$(LIBVERSION)$(SLIBSUF)'
+ SLIBNAME_WITH_MAJOR='$(SLIBPREF)$(NAME)-$(LIBMAJOR)$(SLIBSUF)'
+ SLIB_EXTRA_CMD="-lib /machine:i386 /def:\$(@:${SLIBSUF}=.def)"
+ SLIB_INSTALL_EXTRA_CMD="-install -m 644 \$(SLIBNAME_WITH_MAJOR:\$(SLIBSUF)=.lib) \"\$(shlibdir)/\$(SLIBNAME_WITH_MAJOR:\$(SLIBSUF)=.lib)\""
+ SHFLAGS="-shared -Wl,--output-def,\$(@:${SLIBSUF}=.def),--out-implib,lib\$(SLIBNAME:\$(SLIBSUF)=.dll.a) -Wl,--enable-runtime-pseudo-reloc"
;;
CYGWIN*)
targetos=CYGWIN
@@ -1080,33 +1101,6 @@ else
logfile=/dev/null
fi
-if enabled_any mingw32 wince; then
- if enabled_all shared static; then
- cat <<EOF
-You can only build one library type at once on MinGW.
-Specify --disable-static --enable-shared to only build
-the shared libraries. To build only the static libraries
-you do not need to pass additional options.
-EOF
- exit 1
- fi
- dv1394="no"
- dc1394="no"
- ffserver="no"
- network="no"
- if enabled wince; then
- protocols="no"
- fi
- SLIBPREF=""
- SLIBSUF=".dll"
- EXESUF=".exe"
- SLIBNAME_WITH_VERSION='$(SLIBPREF)$(NAME)-$(LIBVERSION)$(SLIBSUF)'
- SLIBNAME_WITH_MAJOR='$(SLIBPREF)$(NAME)-$(LIBMAJOR)$(SLIBSUF)'
- SLIB_EXTRA_CMD="-lib /machine:i386 /def:\$(@:${SLIBSUF}=.def)"
- SLIB_INSTALL_EXTRA_CMD="-install -m 644 \$(SLIBNAME_WITH_MAJOR:\$(SLIBSUF)=.lib) \"\$(shlibdir)/\$(SLIBNAME_WITH_MAJOR:\$(SLIBSUF)=.lib)\""
- SHFLAGS="-shared -Wl,--output-def,\$(@:${SLIBSUF}=.def),--out-implib,lib\$(SLIBNAME:\$(SLIBSUF)=.dll.a) -Wl,--enable-runtime-pseudo-reloc"
-fi
-
# Combine FFLDFLAGS and the LDFLAGS environment variable.
LDFLAGS="$FFLDFLAGS $LDFLAGS"