Re: Switching compiler between glib and an application/library



Jeff Garzik <jgarzik@pobox.com> writes:
> On Fri, 15 Jan 1999 fpetitje@bureauveritas.com wrote:
> >   If we buil/install glib (1.1.12) with a compiler (say gcc) some
> > particularities specific to the compiler are recorded in glibconfig.h file
> > (which is included by glib.h). As a consequence, it is (right now) not
> > possible to use another compiler to build an application which uses glib.
> > It is really a big constraint.
> >   I may have an application without configure/autoconf setup and only a
> > Makefile and sources targeted to a native C compiler for example; the make
> > will fail if glib was built with gcc.
> 
> You need to install glib in a separate prefix for each compiler you use.

Actually, separate $exec_prefix should be enough.  Of course, that
still means that you have a separate libglib.so for each compiler that
you use.

- Hari
-- 
Raja R Harinath ------------------------------ harinath@cs.umn.edu
"When all else fails, read the instructions."      -- Cahn's Axiom
"Our policy is, when in doubt, do the right thing."   -- Roy L Ash



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]