From 2db5cee0a753b0430a3d3f1fe2af5d5538fb49eb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Reinhard=20Ni=C3=9Fl?= Date: Tue, 10 Apr 2007 21:21:55 +0200 Subject: Allow xine-lib to be built with CFLAGS='-O0 -g3' by changing optimization as needed for some files where gcc runs out of registers otherwise. --- src/post/goom/Makefile.am | 3 +++ src/post/planar/Makefile.am | 5 +++++ 2 files changed, 8 insertions(+) (limited to 'src/post') diff --git a/src/post/goom/Makefile.am b/src/post/goom/Makefile.am index e6bae3374..53a806a7a 100644 --- a/src/post/goom/Makefile.am +++ b/src/post/goom/Makefile.am @@ -8,6 +8,9 @@ EXTRA_DIST = mmx.c xmmx.c ppc_drawings.s ppc_zoom_ultimate.s diff_against_releas #CFLAGS = `echo @CFLAGS@ | sed -e 's/-fomit-frame-pointer//g;s/-Os/-O2/g'` CFLAGS = `echo @CFLAGS@ | sed -e 's/-Os/-O2/g'` +# Avoid errors with -O0 +xineplug_post_goom_la-xmmx.o xineplug_post_goom_la-xmmx.lo: CFLAGS=`echo @CFLAGS@ | sed -e 's/-O0\?\s/-Os /g'` + xinepost_LTLIBRARIES = xineplug_post_goom.la ## doesn't work diff --git a/src/post/planar/Makefile.am b/src/post/planar/Makefile.am index 5fc425cdf..826f378a6 100644 --- a/src/post/planar/Makefile.am +++ b/src/post/planar/Makefile.am @@ -15,6 +15,11 @@ endif # work, but at least it compiles. AM_CFLAGS = $(ff_cflags) -fomit-frame-pointer +# Avoid errors with -O0 +xineplug_post_planar_la-eq.o xineplug_post_planar_la-eq.lo: CFLAGS=`echo @CFLAGS@ | sed -e 's/-O0\?\s/-Os /g'` +xineplug_post_planar_la-eq2.o xineplug_post_planar_la-eq2.lo: CFLAGS=`echo @CFLAGS@ | sed -e 's/-O0\?\s/-Os /g'` +xineplug_post_planar_la-noise.o xineplug_post_planar_la-noise.lo: CFLAGS=`echo @CFLAGS@ | sed -e 's/-O0\?\s/-Os /g'` + xinepost_LTLIBRARIES = xineplug_post_planar.la xineplug_post_planar_la_SOURCES = planar.c invert.c expand.c fill.c boxblur.c \ -- cgit v1.2.3