From 6f114fb0e414ba8fab9627558d7b299436fece19 Mon Sep 17 00:00:00 2001 From: Daniel Caujolle-Bert Date: Sun, 22 Apr 2001 23:41:07 +0000 Subject: Change the way to build cpu_accel bin object. CVS patchset: 15 CVS date: 2001/04/22 23:41:07 --- src/xine-engine/Makefile.am | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) (limited to 'src') diff --git a/src/xine-engine/Makefile.am b/src/xine-engine/Makefile.am index 693051115..e5162e8e0 100644 --- a/src/xine-engine/Makefile.am +++ b/src/xine-engine/Makefile.am @@ -29,12 +29,20 @@ noinst_HEADERS = xine_internal.h buffer.h metronom.h configfile.h \ ## # Hardcoded rule: -# gcc failed to compile this with some optimized flags on all of my -# systems. +# gcc failed to compile this with -fPIC flag +# hackish: [X] yes [ ] no # -cpu_accel.lo: - $(CC) -DHAVE_CONFIG_H $(INCLUDES) -pipe `echo "@DEBUG_CFLAGS@" | sed -e 's/\-DDEBUG//' -e 's/\-g//'` -fomit-frame-pointer -Wall -Wp,-MD,.deps/cpu_accel.P -c $(basename $@).c -o $@ -# echo timestamp > $(basename $@).o +LIBTOOLNOFPIC = $(SHELL) $(top_builddir)/libtool-nofpic +LTCOMPILENOFPIC = $(LIBTOOLNOFPIC) --mode=compile $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) +cpu_accel.lo: cpu_accel.c + @echo '$(LTCOMPILENOFPIC) -c $<'; \ + $(LTCOMPILENOFPIC) -Wp,-MD,.deps/$(*F).pp -c $< + @-sed -e 's/^\([^:]*\)\.o[ ]*:/\1.lo \1.o :/' \ + < .deps/$(*F).pp > .deps/$(*F).P; \ + tr ' ' '\012' < .deps/$(*F).pp \ + | sed -e 's/^\\$$//' -e '/^$$/ d' -e '/:$$/ d' -e 's/$$/ :/' \ + >> .deps/$(*F).P; \ + rm -f .deps/$(*F).pp debug: -- cgit v1.2.3