http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60543

--- Comment #16 from Harald Anlauf <anlauf at gmx dot de> ---
(In reply to Sarantis Pantazis from comment #13)
> > Did you update the compiler name in your makefile?
> 
> I have left the line COMPILER=gfortran at the top as it is and I have
> defined an alias in my ~/.bashrc for gfortran pointing to the newly
> installed location (alias gfortran='$HOME/latestGcc/gcc-build/gcc/gfortran').

I think that aliases in a Makefile are a bad idea.  You need to make sure
that the aliases are exported from the invoking shell.

On my system I get:

% alias gfc
alias gfc='gfortran'
% cat Makefile

SHELL = /bin/bash

aliastest:
        echo "Running make: alias:"; alias
% make aliastest
echo "Running make: alias:"; alias
Running make: alias:

So no aliases are set!  Try "man bash" and search for "expand_aliases".
I use a symbolic link gfc-trunk (you might prefer gfortran-latest)
to the installed binary and use this in the makefile.

Reply via email to