public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
From: Craig Burley <burley@gnu.org>
To: oliva@dcc.unicamp.br
Cc: egcs@cygnus.com
Subject: Re: Results for egcs-2.91.42 19980621 (gcc2 ss-980502 experimental) testsuite on sparc-sun-sunos4.1.3
Date: Wed, 24 Jun 1998 21:23:00 -0000	[thread overview]
Message-ID: <199806242351.TAA00883@melange.gnu.org> (raw)
In-Reply-To: <orzpf2d4w6.fsf@zecarneiro.lsd.dcc.unicamp.br>

>oliva@atibaia% egcsc cabs.f -lg2c    
>/n/temp1/gcctest/egcs/SunOS-4.1.3/lib/gcc-lib/sparc-sun-sunos4.1.3/egcs-2.91.42/libg2c.a(cabs.o): In function `f__cabs':
>/n/temp1/gcctest/bin/../src/egcs/libf2c/libF77/cabs.c:25: undefined reference to `sqrt'
>collect2: ld returned 1 exit status
>oliva@atibaia% egcsc cabs.f -lg2c -lm
>oliva@atibaia% ./a.out    
>
>Does anyone know how we can add `-lm' to the link command of this test
>program, iff libm exists?

The g77 driver does this automatically.  By "this" I mean adds -lg2c -lm.
In fact, I think if you specify -lg2c, it adds -lm after it; and if
you specify -lm, it adds -lg2c before it.  Haven't tested that for
awhile.  (But most of this is only since snapshot 19980615 or so;
before that, adding -lg2c -lm was done rather "mechanically".)

        tq vm, (burley)

  parent reply	other threads:[~1998-06-24 21:23 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-06-23 22:55 Alexandre Oliva
1998-06-24 10:08 ` Craig Burley
1998-06-24 14:50   ` Alexandre Oliva
1998-06-24 20:08     ` Jeffrey A Law
1998-06-25  6:50       ` Fred Fish
1998-06-24 21:23     ` Craig Burley [this message]
1998-06-25  6:50     ` Dave Love
1998-06-26  7:16       ` Alexandre Oliva
1998-06-26 13:03         ` Craig Burley
1998-06-27 19:07           ` Alexandre Oliva
1998-06-27 22:14           ` Jeffrey A Law

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=199806242351.TAA00883@melange.gnu.org \
    --to=burley@gnu.org \
    --cc=egcs@cygnus.com \
    --cc=oliva@dcc.unicamp.br \
    /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).