automake
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Small automake patch


From: Ville Laurikari
Subject: Re: Small automake patch
Date: Thu, 28 Dec 2000 14:13:34 +0200
User-agent: Mutt/1.2.5i

On Thu, Dec 28, 2000 at 01:20:48PM +0200, Ville Laurikari wrote:

> +aix)
> +  # The C for AIX Compiler uses -M and outputs the dependencies
> +  # in a .u file.
> +  tmpdepfile=`echo "$object" | sed 's/\(.*\)\..*$/\1.u/'`
> +  if "$@" -M && test -f "$tmpdepfile"; then
> +    mv "$tmpdepfile" "$depfile"
> +  fi
> +  ;;

Oops, this does not work with libtool, of course.  Here is the correct
code for this:

aix)
  # The C for AIX Compiler uses -M and outputs the dependencies
  # in a .u file.
  tmpdepfile=`echo "$object" | sed 's/\(.*\)\..*$/\1.u/'`
  if test "$libtool" = yes; then
    "$@" -Wc,-M
  else
    "$@" -M
  fi
  if test $? -eq 0 -a -f "$tmpdepfile"; then
    mv "$tmpdepfile" "$depfile"
  fi
  ;;


Sorry...



-- 
http://www.iki.fi/vl/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]