From e70fb194023f6f9807640e7616cf8159b6ec2def Mon Sep 17 00:00:00 2001 From: Erik Walthinsen Date: Mon, 1 Jan 2001 06:57:46 +0000 Subject: [PATCH] fixed a nasty bug where at -O6 teh compiler optimized cothreads.c beyond the point of functioning Original commit message from CVS: fixed a nasty bug where at -O6 teh compiler optimized cothreads.c beyond the point of functioning --- gst/Makefile.am | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/gst/Makefile.am b/gst/Makefile.am index fb114fc16b..08974b94c6 100644 --- a/gst/Makefile.am +++ b/gst/Makefile.am @@ -46,6 +46,12 @@ libgst_la_SOURCES = \ cothreads.c \ gstscheduler.c +# the compiler shoots cothreads.c in the head at -O6 +cothreads.lo: cothreads.c + $(LTCOMPILE) -O2 -c $< +cothreads.o: cothreads.c + $(COMPILE) -O2 -c $< + libgstincludedir = $(includedir)/gst libgstinclude_HEADERS = \ gst.h \ @@ -82,8 +88,6 @@ noinst_HEADERS = \ gsti386.h \ gstppc.h -CFLAGS += -g -Wall - libgst_la_LIBADD = $(GLIB_LIBS) $(GTK_LIBS) $(XML_LIBS) libgst_la_LDFLAGS = -version-info $(STREAMER_CURRENT):$(STREAMER_REVISION):$(STREAMER_AGE)