On Mar 12, 2008, Basile STARYNKEVITCH <[EMAIL PROTECTED]> wrote:

> Actually, I just want to generate (during the build process in gcc/
> subdir in build directory) a script (basilys-gcc) invoked by cc1 with
> two arguments :
>    the full path of some C file to generate
>    the stripped path (without .so or .sl or .la) of the generated
> dynamic stuff

> I was thinking that it would be a bit more portable to have it instead
>   #! /bin/sh
>   libtool cc -I...appropriatedir... -O -g $1 -o $2.lo

I see.  Yes, you could do that.  Ideally, you'd be using your own copy
of the libtool script, configured to use the
newly-built-and-already-installed toolchain under your control.
Simply using /usr/bin/libtool a pre-installed libltdl, with whatever
compiler happens to be in /usr/bin/gcc, are error-prone, although they
work most of the time.

-- 
Alexandre Oliva         http://www.lsd.ic.unicamp.br/~oliva/
FSF Latin America Board Member         http://www.fsfla.org/
Red Hat Compiler Engineer   [EMAIL PROTECTED], gcc.gnu.org}
Free Software Evangelist  [EMAIL PROTECTED], gnu.org}

Reply via email to