Re: the *-config scripts



On Wed, 7 Jun 2000, Martijn van Beers wrote:

> On Tue, Jun 06, 2000 at 05:57:00AM +0200, Tim Janik wrote:
> > also, the --libs-only-L and --libs-only-l options featured by gnome-config
> > should probably also be featured by gtk-config and glib-config and even
> > be furtherly split up into --libs-only-L, --libs-only-l, --libs-only-l-self
> > and --libs-only-l-system (where --libs-only-l is a superset of
> > --libs-only-l-self (e.g. -lglib -lgmodule -lgthread) and
> > --libs-only-l-system (e.g. -lpthread -ldl -lm) so we can implement
> > proper implementation-level-ordered chaining of the *-config scripts.
> > 
> > this is required especially to "demangle" the -L, -l and other -[misc]
> > options, e.g.
> > 
> > $ gnome-config --libs gnomeui$
> > 
> > puts out:
> > 
> > -rdynamic -L/usr/local/lib -L/usr/X11R6/lib -lgnomeui -lart_lgpl \
> > -lgdk_imlib -lSM -lICE -lgtk -lgdk -lgmodule -lXext -lX11 -lm \
> > -lgnome -lgnomesupport -ldb -lglib -ldl
> > 
> > which should better read:
> > 
> > -L/usr/local/lib -L/usr/X11R6/lib -rdynamic -lgnomeui -lart_lgpl \
> > -lgdk_imlib -lgtk -lgdk -lgnome -lgnomesupport -lgmodule -lglib \
> > -lSM -lICE -lXext -lX11 -ldb -ldl -lm
> 
> Where does the -rdynamic fit into this? $LIBS_PATH or $LIBS_LINK_SELF?
> Or a new category of its own?

if cascaded scripts always add new -L paths to the front of $LIBS_PATH
(which is what i meant they should do), things like -rdynamic can be
implemented by appending to $LIBS_PATH (rather than having yet another
category $SYSTEM_LDFLAGS).

> 
> Martijn
> 

---
ciaoTJ





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