public inbox for sourcenav@sourceware.org
 help / color / mirror / Atom feed
From: "Buczko, Michal" <Michal.Buczko@domdata.depfa-it.com>
To: sourcenav@sourceware.cygnus.com
Subject: RE: Building libraries
Date: Wed, 16 May 2001 00:11:00 -0000	[thread overview]
Message-ID: <164EA92EE2DDD4119DA40050DA83578D2BBE81@mailserver3.domdata.depfa-it.com> (raw)

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
> -------------------------------------------- 
> 

             reply	other threads:[~2001-05-16  0:11 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-05-16  0:11 Buczko, Michal [this message]
  -- strict thread matches above, loose matches on Subject: below --
2001-05-15  1:03 Bernard Dautrevaux
2001-05-12 12:49 punt
2001-05-14  9:44 ` Ian Roxborough
2001-05-14 15:49   ` punt

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=164EA92EE2DDD4119DA40050DA83578D2BBE81@mailserver3.domdata.depfa-it.com \
    --to=michal.buczko@domdata.depfa-it.com \
    --cc=sourcenav@sourceware.cygnus.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).