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

Re: Compiling libraries and gcc

Marco Vittorini Orgeas wrote:

> I have read a lot about it, I tried also to export ,before issue the
> configure command, adjusted  CPPFLAGS,LDFLAGS,PKG_CONFIG_PATH pointing
> them respectively to folders under /opt/gtk/ /opt/glib etc...but it seems
> to have no effect (I read in another post that: "LD_LIBRARY_PATH is  not
> needed when later running the built software due to libtool's use of
> rpaths").
> So,what is the right way to tell gcc (make) to use one or another library
> path when your system has two installed, one of which under /usr/lib and
> so will probably be used by default ?

I think LD_LIBRARY_PATH is what you are after. Also take a look at -B option
of gcc.

Kamaraju S Kusumanchi

Reply to: