Nasty hack enabling docs/gst/ to build with unpatched versions of gtkdoc-scanobj...
authorRichard Boulton <richard@tartarus.org>
Mon, 4 Jun 2001 11:25:19 +0000 (11:25 +0000)
committerRichard Boulton <richard@tartarus.org>
Mon, 4 Jun 2001 11:25:19 +0000 (11:25 +0000)
Original commit message from CVS:
Nasty hack enabling docs/gst/ to build with unpatched versions of
gtkdoc-scanobj which don't understand libtool.

docs/gst/Makefile.am

index 3f4c0cd..d16192c 100644 (file)
@@ -86,7 +86,8 @@ scanobj: $(srcdir)/$(DOC_MODULE).types
        rm gstreamer-scan.o; ln -s gstreamer-scan.lo gstreamer-scan.o
        cd ../../gst/;$(MAKE) libgst.la
        cd ../../gst/elements/;$(MAKE) libgstelements.la
-       env CC="$(LIBTOOL) $(CC)" CFLAGS="$(LIBGST_CFLAGS) $(GLIB_CFLAGS) $(XML_CFLAGS) -I../../" LDFLAGS="$(GST_LIBS)"\
+       # The LD env-var below is a nasty hack to make this work on versions of gtkdoc-scanobj which don't understand libtool
+       env CC="$(LIBTOOL) $(CC)" LD="cp gstreamer-scan.lo gstreamer-scan.o;$(LIBTOOL) $(CC)" CFLAGS="$(LIBGST_CFLAGS) $(GLIB_CFLAGS) $(XML_CFLAGS) -I../../" LDFLAGS="$(GST_LIBS)"\
        gtkdoc-scanobj --module=$(DOC_MODULE) 
        gtkdoc-scan --module=$(DOC_MODULE) --source-dir=$(DOC_SOURCE_DIR)