[MPlayer-dev-eng] Apple's -fast switch for gcc-4.0.1 fails "make depend" everywhere
sci-fi at hush.ai
sci-fi at hush.ai
Sat Jan 14 11:30:13 CET 2006
Hi,
I just read this maillist on mplayerhq.hu about the
CFLAGS cleanup.
That discussion reminds me I need to report a problem
with using the -fast switch on Apple's gcc-4.0.1 (Xcode
2.2 on Tiger 10.4.x; please note Apple released Xcode
2.2.1 just a day or two ago, available at the usual ADC
site, not yet tested by me here).
Using -fast, the "make depend" phases of mplayer will
fail everywhere. Apparently Apple's gcc-4.0.1 can't
process more than one file in this mode.
I've had to patch every Makefile under the main/ cvs
tree to single-file their "depend" sections. Here is
just a sample diff to show you what I mean, for the
Makefile directly under main/:
---cut-here---
--- Makefile_orig 2006-01-03 23:37:31 -0600
+++ Makefile 2006-01-14 04:21:55 -0600
@@ -538,7 +538,7 @@
depend: help_mp.h
./version.sh `$(CC) -dumpversion`
- $(CC) -MM $(CFLAGS) -DCODECS2HTML mplayer.c mencoder.c
$(SRCS_MPLAYER) $(SRCS_MENCODER) 1>.depend
+ for a in mplayer.c mencoder.c $(SRCS_MPLAYER)
$(SRCS_MENCODER); do $(CC) -MM $(CFLAGS) -DCODECS2HTML $$a
1>>.depend; done
@for a in $(PARTS); do $(MAKE) -C $$a dep; done
# ./configure must be run if it changed in CVS
---cut-here---
ISTR the "depend" phase was changed a while back to be
more efficient. Xcode 1.5 (for Panther, using gcc-3.3)
doesn't have this problem (I still have a solid separate
disk drive with 10.3.9 on it). But it seems Apple
changed the gcc-4.0.1 workings to break this type thing
when -fast is specified. And yes it is only when -fast
is specified, I've narrowed it down to just that.
I've dug rather hard on Apple's own maillists to see if
anyone else has spotted such problem. Apparently I'm
the only one. ;)
I'll install Xcode 2.2.1 asap and see what happens with
it. But for meantime, could someone elaborate if there
is another method to side-step this limitation, please?
Thank you.
Concerned about your privacy? Instantly send FREE secure email, no account required
http://www.hushmail.com/send?l=480
Get the best prices on SSL certificates from Hushmail
https://www.hushssl.com?l=485
More information about the MPlayer-dev-eng
mailing list