element-maker: make it fail, when compilation fails

This commit is contained in:
Stefan Kost 2011-04-26 13:42:59 +03:00
parent a161f901eb
commit e32a6f9471

View file

@ -380,6 +380,12 @@ gst-indent $gstreplace.c
echo pkg is $pkg
gcc -Wall -fPIC $(pkg-config --cflags gstreamer-0.10 $pkg) -c -o $gstreplace.o $gstreplace.c
if test $? -ne 0; then
exit 1
fi
gcc -shared -o $gstreplace.so $gstreplace.o $(pkg-config --libs gstreamer-0.10 $pkg)
if test $? -ne 0; then
exit 1
fi