This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: PATCH Finding gas



  In message <35EE5BF1.407C@acm.org>you write:
  > naturally my path is /home/staff/nathan/solaris/.. /usr/local/gnu/...
  > /usr/ccs/bin, so I get my tools overriding the gnu tools, which in turn
  > override the system tools.
  > 
  > I configure with --with-gnu-as --with-gnu-ld. (+ the prefix and
  > exec-prefix appropriate)
  > 
  > This doesn't work, the system assembler and linker are used.
  > /usr/ccs/bin ends up in the gcc binary. There appear to be two problems,
  > one of which I can fix (patch appended), the other has me confused in a
  > maze of twisty header files & configure scripts.
Until we work out a better solution for the finding the gas binary
problem, you can put a symlink in  a well placed directory to work
around the problem.

% gcc --print-search-dirs
install: /usr/cygnus/progressive-97r2/H-hppa1.1-hp-hpux10/lib/gcc-lib/hppa1.1-hp-hpux10/2.7-97r2/
programs: /usr/cygnus/progressive-97r2/H-hppa1.1-hp-hpux10/lib/gcc-lib/hppa1.1-hp-hpux10/2.7-97r2/:/usr/cygnus/progressive-97r2/H-hppa1.1-hp-hpux10/lib/gcc-lib/hppa1.1-hp-hpux10/:/usr/lib/gcc/hppa1.1-hp-hpux10/2.7-97r2/:/usr/lib/gcc/hppa1.1-hp-hpux10/:/usr/cygnus/progressive-97r2/H-hppa1.1-hp-hpux10/lib/gcc-lib/hppa1.1-hp-hpux10/2.7-97r2/../../../../hppa1.1-hp-hpux10/bin/hppa1.1-hp-hpux10/2.7-97r2/:/usr/cygnus/progressive-97r2/H-hppa1.1-hp-hpux10/lib/gcc-lib/hppa1.1-hp-hpux10/2.7-97r2/../../../../hppa1.1-hp-hpux10/bin/:/usr/ccs/bin/hppa1.1-hp-hpux10/2.7-97r2/:/usr/ccs/bin/
libraries: /usr/cygnus/progressive-97r2/H-hppa1.1-hp-hpux10/lib/gcc-lib/hppa1.1-hp-hpux10/2.7-97r2/:/usr/lib/gcc/hppa1.1-hp-hpux10/2.7-97r2/:/usr/cygnus/progressive-97r2/H-hppa1.1-hp-hpux10/lib/gcc-lib/hppa1.1-hp-hpux10/2.7-97r2/../../../../hppa1.1-hp-hpux10/lib/hppa1.1-hp-hpux10/2.7-97r2/:/usr/cygnus/progressive-97r2/H-hppa1.1-hp-hpux10/lib/gcc-lib/hppa1.1-hp-hpux10/2.7-97r2/../../../../hppa1.1-hp-hpux10/lib/:/usr/ccs/bin/hppa1.1-hp-hpux10/2.7-97r2/:/usr/ccs/bin/:/usr/ccs/lib/hppa1.1-hp-hpux10/2.7-97r2/:/usr/ccs/lib/:/usr/cygnus/progressive-97r2/H-hppa1.1-hp-hpux10/lib/gcc-lib/hppa1.1-hp-hpux10/2.7-97r2/../../../hppa1.1-hp-hpux10/2.7-97r2/:/usr/cygnus/progressive-97r2/H-hppa1.1-hp-hpux10/lib/gcc-lib/hppa1.1-hp-hpux10/2.7-97r2/../../../:/lib/hppa1.1-hp-hpux10/2.7-97r2/:/lib/:/usr/lib/hppa1.1-hp-hpux10/2.7-97r2/:/usr/lib/

Look at the "programs" path.  That's the order of the internal search
that's compiled into your gcc binary.  If you place the symlinks early
in that path they'll be found before stuff later in the path (like
/usr/ccs typically is).  Obviously, the paths will be different for
your installation, but you get the idea.

  > Thu Sep  3 09:46:38 BST 1998  Nathan Sidwell  <nathan@acm.org>
  > 
  > 	* gcc/configure.in: Don't assume srcdir is .../gcc
Thanks.  Installed.

jeff


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]