Re: depcomp changes for IRIX
David, [depcomp with SGI MIPSpro] > The second is optional; to shorten some very long dependency lines I > pruned out all the system headers (all headers with absolute paths). The problem you're probably seeing without your patch is probably lines that are cut off, thereby giving you faulty dependencies. The cause of this is actually that IRIX sed cuts off lines longer than a certain limit (4096 characters, if I remember correctly). I submitted a workaround for this long ago, so this is also fixed in the CVS sources. Regards, Morten
Re: depcomp changes for IRIX
Hi, David Kaelbling <[EMAIL PROTECTED]> writes: > I recently built libglade/0.16 for IRIX 6.2, and noticed a small flaw in > depcomp. To use the native MipsPRO compilers I made the changes below. > The first one is important -- passing the flag to the proper compiler > phase. [...] > sgi) >if test "$libtool" = yes; then > -"$@" "-Wc,-MDupdate,$tmpdepfile" > +"$@" "-Wp,-MDupdate,$tmpdepfile" This already appears to have been fixed in the CVS version of 'depcomp'. > The second is optional; to shorten some very long dependency lines I > pruned out all the system headers (all headers with absolute paths). [...] >echo "$object : \\" > "$depfile" > - sed 's/^[^:]*: / /' < "$tmpdepfile" >> "$depfile" > + sed -e 's/^[^:]*: / /' -e 's# /[^ ]*##g' < "$tmpdepfile" >> "$depfile" This may not be a good idea. This heuristic would work only if the Makefile.am used relative paths for same tree include directories, and either * you're building in the source tree * you're building in a separate tree, but provided a relative path to the source tree Also, in general, you also need to trust the compiler not to convert relative include paths to absolute while generating dependencies. Since, in this case, the compiler is "known", this isn't an issue. - Hari -- Raja R Harinath -- [EMAIL PROTECTED] "When all else fails, read the instructions." -- Cahn's Axiom "Our policy is, when in doubt, do the right thing." -- Roy L Ash
depcomp changes for IRIX
Hi, I recently built libglade/0.16 for IRIX 6.2, and noticed a small flaw in depcomp. To use the native MipsPRO compilers I made the changes below. The first one is important -- passing the flag to the proper compiler phase. The second is optional; to shorten some very long dependency lines I pruned out all the system headers (all headers with absolute paths). --- ./depcomp Tue Apr 11 09:59:53 2000 +++ ../libglade-0.16/./depcomp Thu Mar 15 14:39:29 2001 @@ -110,7 +110,7 @@ sgi) if test "$libtool" = yes; then -"$@" "-Wc,-MDupdate,$tmpdepfile" +"$@" "-Wp,-MDupdate,$tmpdepfile" else "$@" -MDupdate "$tmpdepfile" fi @@ -123,7 +123,7 @@ fi rm -f "$depfile" echo "$object : \\" > "$depfile" - sed 's/^[^:]*: / /' < "$tmpdepfile" >> "$depfile" + sed -e 's/^[^:]*: / /' -e 's# /[^ ]*##g' < "$tmpdepfile" >> "$depfile" tr ' ' ' ' < "$tmpdepfile" | \ ## Some versions of the HPUX 10.20 sed can't process this invocation Thanks, David -- David KAELBLING <[EMAIL PROTECTED]> Silicon Graphics Computer Systems 1 Cabot Rd, suite 250; Hudson, MA 01749 781.839.2157, fax ...2357