On Apr 19, 2010, at 9:30 AM, Paul Cizmas wrote:
> > I do note that the compile command line is:
> >
> > /bin/sh ../../../libtool --mode=compile /Applications/Absoft11.0/
> > bin/f90 -I../../../ompi/include -I../../../ompi/include -p. -I. -
> > I../../../ompi/mpi/f90 -m64 -lU77 -c -o mpi.lo mpi.f90
> >
> > Do you have your .bashrc configured such that it is run for /bin/sh
> > as well? (I'm a tcsh user; forgive if this is a dumb question)
>
> I do not know this!!! How can I check it?
Try this:
$ cat > testme <<EOF
#!/bin/sh
env | grep ABSOFT
exit 0
EOF
$ chmod +x testme
$ ./testme
ABSOFT=<your value>
$ /bin/sh ./testme
ABSOFT=<your value>
Confirm that this works. If it does, try this:
$ cat > Makefile <<EOF
all:
<tab>./testme
EOF
$ make
./testme
ABSOFT=<your value>
Can you see if that works?
It does if I
export ABSOFT=foo
but not if I
ABSOFT=foo
For example:
bash-3.2$ ABSOFT=foo
bash-3.2$ ./testme
bash-3.2$ export ABSOFT=foo
bash-3.2$ ./testme
ABSOFT=foo
bash-3.2$
--
Jeff Squyres
jsquyres_at_[hidden]
For corporate legal information go to:
http://www.cisco.com/web/about/doing_business/legal/cri/
|