using STANDARD_BINDIR_PREFIX and overrdes

"James K. Lowden" <[email protected]>
Newsgroups gmane.comp.gcc.devel
Message-ID <[email protected]>
I don't understand how -B works.  It does, and now I need to propagate
the information to cobol1.

If we invoke

    gcobol -B/tmp

it will invoke /tmp/cobol1, magically.  We don't do anything to make
that happen in gcc/gcobolspec.cc.

Without -B, it seems we expect to find STANDARD_BINDIR_PREFIX/cobol1.

Is the value of STANDARD_BINDIR_PREFIX assigned to a variable, and then
modified by -B and/or GCC_EXEC_PREFIX ?  If so, I'll propagate that
variable's value somehow to cobol.  If not, I'll roll my own.

Obviously I'd like to do that without stepping on the default
behavior.  Pointers welcome.  :-)

cobol1 needs this information to find include files, akin to
<algorithm> in C++.  

--jkl
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.