[gst-devel] Re: [gst-cvs] CVS: gstreamer/gst/schedulers Makefile.am,1.8,1.9

Richard Boulton richard at tartarus.org
Mon Feb 11 04:34:04 CET 2002


This situation is one of the big reasons that recursive make is bad.

I know of only two possible solutions to this situation:

1) Move the cothreads library into a separate top level directory so
that it can be built before the gst/* tree.  (I see you've tried just
building the libs/* tree first - I presume that fails because it depends
on the gst/* tree in some way which can't easily be resolved.)

2) Change the build system so that it doesn't use a recursive make. 
Automake 1.5 just about supports enough features so that this can be
done (I'm doing this with all my more recent projects; unfortunately
none of those have been released yet so I can't show you an example).
It's probably not a good idea to get into all this: I can't guarantee
that you'd be successful in the end, and it would be a huge amount of
work.

For now, I think your best bet is just to stick with the hack.

On Mon, 2002-02-11 at 12:08, Thomas Vander Stichele wrote:
> Update of /cvsroot/gstreamer/gstreamer/gst/schedulers
> In directory usw-pr-cvs1:/tmp/cvs-serv21958
> 
> Modified Files:
> 	Makefile.am 
> Log Message:
> this is a really evil hack.
> I would like for someone to help wingo and me fixing it properly ;)
> and for that I could use a little basic education on some of the LD FLAGS 
> we need all over because trying to fix it properly got me confused.
>
> Index: Makefile.am
> ===================================================================
> RCS file: /cvsroot/gstreamer/gstreamer/gst/schedulers/Makefile.am,v
> retrieving revision 1.8
> retrieving revision 1.9
> diff -u -d -r1.8 -r1.9
> --- Makefile.am	11 Feb 2002 01:38:55 -0000	1.8
> +++ Makefile.am	11 Feb 2002 12:08:50 -0000	1.9
> @@ -7,6 +7,10 @@
>  libgstbasicscheduler_la_LIBADD = $(GST_LIBS) ../libcothreads.la
>  libgstbasicscheduler_la_LDFLAGS = @GST_LT_LDFLAGS@
>  
> +## this is a REALLY evil hack which we need to get rid of as soon as possible !
> +$(top_builddir)/libs/ext/cothreads/cothreads/libcothreads-gthreads.la:
> +	cd $(top_builddir)/libs/ext/cothreads/cothreads && make
> +
>  libgststandardscheduler_la_SOURCES = gststandardscheduler.c 
>  libgststandardscheduler_la_CFLAGS = $(GST_CFLAGS) -I$(top_srcdir)/libs/ext/cothreads
>  libgststandardscheduler_la_LIBADD = $(GST_LIBS) $(top_builddir)/libs/ext/cothreads/cothreads/libcothreads-gthreads.la
> 
> 
> _______________________________________________
> gstreamer-cvs mailing list
> gstreamer-cvs at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gstreamer-cvs
> 





More information about the gstreamer-devel mailing list