dlfcn="no"
dlopen="no"
mpegaudio_hp="yes"
-SHFLAGS='-shared -Wl,-soname,$@.$(LIBMAJOR)'
+SHFLAGS='-shared -Wl,-soname,$@'
netserver="no"
need_inet_aton="no"
protocols="yes"
ffserver="yes"
ffplay="yes"
LIBOBJFLAGS=""
-LDFLAGS=-Wl,--warn-common
+FFLDFLAGS=-Wl,--warn-common
FFSLDFLAGS=-Wl,-E
LDCONFIG="ldconfig"
LIBPREF="lib"
audio_oss="no"
dv1394="no"
make="gmake"
-LDFLAGS=""
+FFLDFLAGS=""
FFSLDFLAGS=""
need_inet_aton="yes"
extralibs="$extralibs -lsocket -lnsl"
audio_oss="yes"
dv1394="no"
make="gmake"
-LDFLAGS="$LDFLAGS -export-dynamic"
-case `uname -r` in
-2.*) extralibs="$extralibs -lossaudio"
-;;
-esac
+FFLDFLAGS="$FFLDFLAGS -export-dynamic"
+extralibs="$extralibs -lossaudio"
;;
OpenBSD)
v4l="no"
dv1394="no"
make="gmake"
LIBOBJFLAGS="\$(PIC)"
-LDFLAGS="$LDFLAGS -export-dynamic -pthread"
+FFLDFLAGS="$FFLDFLAGS -export-dynamic -pthread"
LDCONFIG="ldconfig -m \$(libdir)"
extralibs="$extralibs -lossaudio"
;;
dv1394="no"
make="gmake"
CFLAGS="$CFLAGS -pthread"
-LDFLAGS="$LDFLAGS -export-dynamic -pthread"
+FFLDFLAGS="$FFLDFLAGS -export-dynamic -pthread"
;;
BSD/OS)
v4l="no"
darwin="yes"
strip="strip -x"
installstrip=""
-LDFLAGS="-Wl,-dynamic,-search_paths_first"
+FFLDFLAGS="-Wl,-dynamic,-search_paths_first"
SLIBSUF=".dylib"
SLIBNAME_WITH_FULLVERSION='$(SLIBPREF)$(NAME).$(LIBVERSION)$(SLIBSUF)'
SLIBNAME_WITH_MAJOR='$(SLIBPREF)$(NAME).$(LIBMAJOR)$(SLIBSUF)'
EXESUF=".exe"
;;
Linux)
-LDFLAGS="$LDFLAGS -rdynamic"
+FFLDFLAGS="$FFLDFLAGS -rdynamic -Wl,--as-needed -Wl,-rpath-link,\$(BUILD_ROOT)/libavcodec -Wl,-rpath-link,\$(BUILD_ROOT)/libavformat -Wl,-rpath-link,\$(BUILD_ROOT)/libavutil"
;;
IRIX*)
ranlib="echo ignoring ranlib"
ranlib="echo ignoring ranlib"
strip="echo ignoring strip"
CFLAGS="$CFLAGS -Zomf"
-LDFLAGS="-Zomf -Zstack 16384 -s"
+FFLDFLAGS="-Zomf -Zstack 16384 -s"
SHFLAGS="-Zdll -Zomf"
FFSLDFLAGS=""
LIBPREF=""
;;
--extra-cflags=*) CFLAGS="$CFLAGS ${opt#--extra-cflags=}"
;;
- --extra-ldflags=*) LDFLAGS="$LDFLAGS ${opt#--extra-ldflags=}"
+ --extra-ldflags=*) FFLDFLAGS="$FFLDFLAGS ${opt#--extra-ldflags=}"
;;
--extra-libs=*) extralibs=${opt#--extra-libs=}
;;
;;
--enable-small) optimize="small"
;;
- --enable-amr_nb) amr_nb="yes"
+ --enable-amr_nb) amr="yes"; amr_nb="yes"; amr_nb_fixed="no"
;;
- --enable-amr_nb-fixed) amr_nb_fixed="yes"
+ --enable-amr_nb-fixed) amr="yes"; amr_nb_fixed="yes"; amr_nb="no"
;;
- --enable-amr_wb) amr_wb="yes"
+ --enable-amr_wb) amr="yes"; amr_wb="yes"
;;
- --enable-amr_if2) amr_if2="yes"
+ --enable-amr_if2) amr="yes"; amr_if2="yes"
;;
--enable-sunmlib) sunmlib="yes"
;;
esac
done
+
+# Combine FFLDFLAGS and the LDFLAGS environment variable
+LDFLAGS="$FFLDFLAGS $LDFLAGS"
+
# we need to build at least one lib type
if test "$lstatic" = "no" && test "$lshared" = "no" ; then
cat <<EOF
cat > $TMPC << EOF
#include <mm3dnow.h>
int main(void) {
+__m64 b1;
+b1 = _m_pswapd(b1);
+_m_femms();
return 0;
}
EOF
mm3dnow=no
-if $cc -march=athlon -o $TMPO $TMPC 2> /dev/null ; then
+march=athlon
+if test "$cpu" = "x86_64"; then
+ march=k8
+fi
+if $cc -march=$march -o $TMPO $TMPC 2> /dev/null ; then
mm3dnow=yes
fi
echo "SRC_PATH=$source_path" >> config.mak
echo "BUILD_ROOT=$PWD" >> config.mak
+if test "$amr" = "yes" ; then
+ echo "#define AMR 1" >> $TMPH
+ echo "AMR=yes" >> config.mak
+fi
+
if test "$amr_wb" = "yes" ; then
echo "#define AMR_WB 1" >> $TMPH
echo "AMR_WB=yes" >> config.mak
echo "V5.1.0 from "
echo "http://www.3gpp.org/ftp/Specs/archive/26_series/26.204/26204-510.zip"
echo "and extracted the source to libavcodec/amrwb_float"
- echo
fi
if test "$amr_nb" = "yes" ; then
echo "#define AMR_NB 1" >> $TMPH
echo "AMR_NB=yes" >> config.mak
echo
+ echo "AMR NB FLOAT NOTICE ! Make sure you have downloaded TS26.104"
+ echo "REL-5 V5.1.0 from "
+ echo "http://www.3gpp.org/ftp/Specs/latest/Rel-5/26_series/26104-5??.zip"
+ echo "and extracted the source to libavcodec/amr_float"
+ echo "If you try this on alpha, you may need to change Word32 to int in amr/typedef.h"
+fi
+
if test "$amr_nb_fixed" = "yes" ; then
- echo "AMR_NB_FIXED=yes" >> config.mak
echo "#define AMR_NB_FIXED 1" >> $TMPH
+ echo "AMR_NB_FIXED=yes" >> config.mak
echo
echo "AMR NB FIXED POINT NOTICE! Make sure you have downloaded TS26.073 "
echo "REL-5 version 5.1.0 from "
echo "and extracted src to libavcodec/amr"
echo "You must also add -DMMS_IO and remove -pedantic-errors to/from CFLAGS in libavcodec/amr/makefile."
echo "i.e. CFLAGS = -Wall -I. \$(CFLAGS_\$(MODE)) -D\$(VAD) -DMMS_IO"
- echo
-else
- echo "AMR NB FLOAT NOTICE ! Make sure you have downloaded TS26.104"
- echo "REL-5 V5.1.0 from "
- echo "http://www.3gpp.org/ftp/Specs/latest/Rel-5/26_series/26104-5??.zip"
- echo "and extracted the source to libavcodec/amr_float"
- echo "If you try this on alpha, you may need to change Word32 to int in amr/typedef.h"
- echo
fi
if test "$amr_if2" = "yes" ; then
echo "AMR_CFLAGS=-DIF2=1" >> config.mak
fi
-fi
for codec in $CODEC_LIST ; do
echo "#define CONFIG_`echo $codec | tr a-z A-Z` 1" >> $TMPH