gl/example: fix build error when compiling cocoa-videooverlay
authorJulien Isorce <j.isorce@samsung.com>
Wed, 3 Jun 2015 21:21:30 +0000 (22:21 +0100)
committerJulien Isorce <j.isorce@samsung.com>
Thu, 4 Jun 2015 07:04:13 +0000 (08:04 +0100)
libtool: error: ignoring unknown tag OBJC
and
clang: error: argument unused during compilation: '-pthread'

tests/examples/gl/cocoa/Makefile.am

index 91349c0..3690546 100755 (executable)
@@ -4,12 +4,12 @@ noinst_PROGRAMS = cocoa-videooverlay
 
 cocoa_videooverlay_SOURCES = cocoa-videooverlay.m
 
-cocoa_videooverlay_OBJCFLAGS=-I$(top_srcdir)/gst-libs -I$(top_builddir)/gst-libs \
+cocoa_videooverlay_OBJCFLAGS=-Wno-error=unused-command-line-argument \
+    -I$(top_srcdir)/gst-libs -I$(top_builddir)/gst-libs \
     $(GST_PLUGINS_BASE_CFLAGS) $(GST_CFLAGS) \
-       $(GL_CFLAGS) ${GL_OBJCFLAGS}
-cocoa_videooverlay_LDADD=$(GST_PLUGINS_BASE_LIBS) $(GST_LIBS) \
-       $(GL_LIBS) -lgstvideo-$(GST_API_VERSION)
+    $(GL_CFLAGS) $(GL_OBJCFLAGS)
 
-cocoa_videooverlay_LIBTOOLFLAGS = --tag=OBJC
+cocoa_videooverlay_LDADD=$(GST_PLUGINS_BASE_LIBS) $(GST_LIBS) \
+    $(GL_LIBS) -lgstvideo-$(GST_API_VERSION)
 
 endif