This is the mail archive of the gcc@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]
Other format: [Raw text]

Re: libtool for shared objects?


On Mar 12, 2008, Basile STARYNKEVITCH <basile@starynkevitch.net> 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   aoliva@{redhat.com, gcc.gnu.org}
Free Software Evangelist  oliva@{lsd.ic.unicamp.br, gnu.org}


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