buildsystem: add -lm flag required by cmdutils
authorReynaldo H. Verdejo Pinochet <reynaldo@osg.samsung.com>
Wed, 2 Nov 2016 05:21:33 +0000 (22:21 -0700)
committerReynaldo H. Verdejo Pinochet <reynaldo@osg.samsung.com>
Wed, 2 Nov 2016 05:22:52 +0000 (22:22 -0700)
scripts/ffmpeg-uninstalled.sh

index 8e91f95..126aa7e 100755 (executable)
@@ -2,14 +2,13 @@
 
 FFMPEG_SRC_PATH=~/ffmpeg-git/ffmpeg
 BDIR=~/ffmpeg-git/ffmpeg
-
+CMDUTILS_FLAGS="-lm"
 
 FFSERVER_FLAGS="$(PKG_CONFIG_PATH=$FFMPEG_SRC_PATH/doc/examples/pc-uninstalled pkg-config --libs --cflags libavfilter libavformat libavdevice libavcodec libswscale libswresample libavutil)"
 
 FFSERVER_SOURCES="$FFMPEG_SRC_PATH/cmdutils.o ffserver/ffserver.c ffserver/ffserver_config.c"
 
-gcc -o ffserver/ffserver $FFSERVER_SOURCES $FFSERVER_FLAGS
-
+gcc -o ffserver/ffserver $FFSERVER_SOURCES $FFSERVER_FLAGS $CMDUTILS_FLAGS
 
 #gcc $IDIR/ffplay.c -o ffserver/ffplay -I/usr/local/include/SDL2 $IDIR/cmdutils.o  -I$IDIR -I$BDIR -L$BDIR -lavfilter/libavfilter -lavutil/libavutil -lavformat/libavformat -lavdevice/libavdevice -lavcodec/libavcodec -lswscale/libswscale -lswresample/libswresample -lpostproc/libpostproc /usr/local/lib/libSDL2-2.0.so.0