This is the mail archive of the
sourcenav@sources.redhat.com
mailing list for the Source Navigator.
RE: Building libraries
- To: sourcenav at sourceware dot cygnus dot com
- Subject: RE: Building libraries
- From: "Buczko, Michal" <Michal dot Buczko at domdata dot depfa-it dot com>
- Date: Wed, 16 May 2001 09:09:17 +0200
Hi,
I had a simmilar problem with building a library using sn and after changing
linker from 'gcc' to 'ar' is seems to work perfectly but i think there is
another bug. building executable file gcc was unable to generete output
because all libraries i want to include are added to command line like this:
gcc -o ble ble1.o ble2.o /usr/lib/libncurses.a /usr/lib/libgcontrol.a
this causes lots of conflicts (no matter what is the order of these
libraries), but after replacing /usr/lib/libncurses.a with -lncurses and
/usr/lib/libgcontrol.a with -lgcontrol everything goes ok. that`s way i
wrote a simple patch that renames all included libraries from
/usr/lib/lib*.a to -l*. it isn`t too flexible but it should work.
file: gui/buildtarget.tcl
method GetLibraryFiles {} {
regsub -all -nocase {(/usr/lib/lib)([^\.]+)(\.a)} ${LibFiles} {-l\2}
LibFiles <---- added line
return ${LibFiles}
}
Best regards,
Michal Buczko
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
DomData sp. z.o.o
E-mail: Michal.Buczko@domdata.depfa-it.com
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
> -----Original Message-----
> From: Bernard Dautrevaux [mailto:Dautrevaux@microprocess.com]
> Sent: Tuesday, May 15, 2001 9:41 AM
> To: 'punt'; Ian Roxborough
> Cc: sourcenav@sourceware.cygnus.com
> Subject: RE: Building libraries
>
>
> > -----Original Message-----
> > From: punt [mailto:punt@kerrskorner.org]
> > Sent: Tuesday, May 15, 2001 1:55 AM
> > To: Ian Roxborough; punt
> > Cc: sourcenav@sourceware.cygnus.com
> > Subject: Re: Building libraries
> >
> >
> > Well, I am not sure that is the issue. It looks as if ar is
> > never called,
> > but the linker is:
> >
> >
> > gcc -r ../bin/libdatastore.a diskmulstor.o mapdatadisk.o
> > gcc: ../bin/libdatastore.a: No such file or directory
> >
>
> Looks like SN thinks the archiver is named gcc... Or is it
> your settings?
>
> Just my .02 euro
>
> Bernard
>
> --------------------------------------------
> Bernard Dautrevaux
> Microprocess Ingenierie
> 97 bis, rue de Colombes
> 92400 COURBEVOIE
> FRANCE
> Tel: +33 (0) 1 47 68 80 80
> Fax: +33 (0) 1 47 88 97 85
> e-mail: dautrevaux@microprocess.com
> b.dautrevaux@usa.net
> --------------------------------------------
>