Originally committed as revision 12587 to svn://svn.ffmpeg.org/ffmpeg/trunk
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 " --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 " --target-os=OS compiler targets OS [$targetos]"
+ echo " --target-os=OS compiler targets OS [$target_os]"
echo " --cc=CC use C compiler CC [$cc]"
echo " --make=MAKE use specified make [$make]"
echo " --extra-cflags=ECFLAGS add ECFLAGS to CFLAGS [$CFLAGS]"
echo " --cc=CC use C compiler CC [$cc]"
echo " --make=MAKE use specified make [$make]"
echo " --extra-cflags=ECFLAGS add ECFLAGS to CFLAGS [$CFLAGS]"
-targetos=$(tolower $(uname -s))
+target_os=$(tolower $(uname -s))
;;
--cross-prefix=*) cross_prefix="$optval"
;;
;;
--cross-prefix=*) cross_prefix="$optval"
;;
- --target-os=*) targetos="$optval"
+ --target-os=*) target_os="$optval"
;;
--cc=*) cc="$optval"
;;
;;
--cc=*) cc="$optval"
;;
enabled sparc64 && enable sparc
# OS specific
enabled sparc64 && enable sparc
# OS specific
beos|haiku|zeta)
PREFIX="$HOME/config"
# helps building libavcodec
beos|haiku|zeta)
PREFIX="$HOME/config"
# helps building libavcodec
FFSERVERLDFLAGS=-Wl,-bind_at_load
;;
mingw32*)
FFSERVERLDFLAGS=-Wl,-bind_at_load
;;
mingw32*)
shlibdir="$bindir"
VHOOKSHFLAGS='-shared -L$(BUILD_ROOT)/libavformat -L$(BUILD_ROOT)/libavcodec -L$(BUILD_ROOT)/libavutil'
VHOOKLIBS='-lavformat$(BUILDSUF) -lavcodec$(BUILDSUF) -lavutil$(BUILDSUF) $(EXTRALIBS)'
shlibdir="$bindir"
VHOOKSHFLAGS='-shared -L$(BUILD_ROOT)/libavformat -L$(BUILD_ROOT)/libavcodec -L$(BUILD_ROOT)/libavutil'
VHOOKLIBS='-lavformat$(BUILDSUF) -lavcodec$(BUILDSUF) -lavutil$(BUILDSUF) $(EXTRALIBS)'
SHFLAGS='-shared -Wl,--output-def,$(@:$(SLIBSUF)=.def) -Wl,--enable-runtime-pseudo-reloc -Wl,--enable-auto-image-base'
;;
cygwin*)
SHFLAGS='-shared -Wl,--output-def,$(@:$(SLIBSUF)=.def) -Wl,--enable-runtime-pseudo-reloc -Wl,--enable-auto-image-base'
;;
cygwin*)
shlibdir="$bindir"
VHOOKSHFLAGS='-shared -L$(BUILD_ROOT)/libavformat -L$(BUILD_ROOT)/libavcodec -L$(BUILD_ROOT)/libavutil'
VHOOKLIBS='-lavformat$(BUILDSUF) -lavcodec$(BUILDSUF) -lavutil$(BUILDSUF) $(EXTRALIBS)'
shlibdir="$bindir"
VHOOKSHFLAGS='-shared -L$(BUILD_ROOT)/libavformat -L$(BUILD_ROOT)/libavcodec -L$(BUILD_ROOT)/libavutil'
VHOOKLIBS='-lavformat$(BUILDSUF) -lavcodec$(BUILDSUF) -lavutil$(BUILDSUF) $(EXTRALIBS)'
ranlib="echo ignoring ranlib"
;;
os/2*)
ranlib="echo ignoring ranlib"
;;
os/2*)
- targetos="${targetos}-UNKNOWN"
+ target_os="${target_os}-UNKNOWN"
test -z "$need_memalign" && need_memalign="$mmx"
#Darwin CC versions
test -z "$need_memalign" && need_memalign="$mmx"
#Darwin CC versions
-if test $targetos = darwin; then
+if test $target_os = darwin; then
if $cc -v 2>&1 | grep -q xlc; then
add_cflags "-qpdf2 -qlanglvl=extc99 -qmaxmem=-1 -qarch=auto -qtune=auto"
else
if $cc -v 2>&1 | grep -q xlc; then
add_cflags "-qpdf2 -qlanglvl=extc99 -qmaxmem=-1 -qarch=auto -qtune=auto"
else
test "$vhook" = "default" && vhook="$dlopen"
test "$vhook" = "default" && vhook="$dlopen"
-if test "$targetos" = cygwin -o "$targetos" = mingw32 && enabled_all static vhook ; then
+if test "$target_os" = cygwin -o "$target_os" = mingw32 && enabled_all static vhook ; then
disable vhook
echo
echo "At the moment vhooks don't work on Cygwin or MinGW static builds."
disable vhook
echo
echo "At the moment vhooks don't work on Cygwin or MinGW static builds."