summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Caujolle-Bert <f1rmb@users.sourceforge.net>2001-04-22 23:41:07 +0000
committerDaniel Caujolle-Bert <f1rmb@users.sourceforge.net>2001-04-22 23:41:07 +0000
commit6f114fb0e414ba8fab9627558d7b299436fece19 (patch)
tree2446d9ecc37c89b17bcaf719887fc5f05d31ed1d
parent4649e12104c85f1e5c667b1a88bae5ea1b1874c6 (diff)
downloadxine-lib-6f114fb0e414ba8fab9627558d7b299436fece19.tar.gz
xine-lib-6f114fb0e414ba8fab9627558d7b299436fece19.tar.bz2
Change the way to build cpu_accel bin object.
CVS patchset: 15 CVS date: 2001/04/22 23:41:07
-rw-r--r--src/xine-engine/Makefile.am18
1 files changed, 13 insertions, 5 deletions
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: