Original commit message from CVS:
Nasty hack enabling docs/gst/ to build with unpatched versions of
gtkdoc-scanobj which don't understand libtool.
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)