From e32a6f947106382898750d4af77151cd42ce5886 Mon Sep 17 00:00:00 2001 From: Stefan Kost Date: Tue, 26 Apr 2011 13:42:59 +0300 Subject: [PATCH] element-maker: make it fail, when compilation fails --- tools/gst-element-maker | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/tools/gst-element-maker b/tools/gst-element-maker index 6db321d5be..81c5d7a28b 100755 --- a/tools/gst-element-maker +++ b/tools/gst-element-maker @@ -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 -gcc -shared -o $gstreplace.so $gstreplace.o $(pkg-config --libs gstreamer-0.10 $pkg) +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 -- 2.34.1