public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: c++/7512: ld getting passed incorrect options with hppa64-hp-hpux11.00
@ 2002-11-21 14:50 danglin
  0 siblings, 0 replies; 2+ messages in thread
From: danglin @ 2002-11-21 14:50 UTC (permalink / raw)
  To: danglin, gcc-bugs, gcc-prs, keith_richling, nobody

Synopsis: ld getting passed incorrect options with hppa64-hp-hpux11.00

Responsible-Changed-From-To: unassigned->danglin
Responsible-Changed-By: danglin
Responsible-Changed-When: Fri Nov 15 15:42:28 2002
Responsible-Changed-Why:
    Assignment.
State-Changed-From-To: open->closed
State-Changed-By: danglin
State-Changed-When: Fri Nov 15 15:42:28 2002
State-Changed-Why:
    Fixed in 3.3.  There is a no switch to generate the
    correct linker option for the GNU and HP linkers.
    Note this doesn't actually change the default linker
    selected at configure time.

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=7512


^ permalink raw reply	[flat|nested] 2+ messages in thread

* c++/7512: ld getting passed incorrect options with hppa64-hp-hpux11.00
@ 2002-08-06 15:46 keith_richling
  0 siblings, 0 replies; 2+ messages in thread
From: keith_richling @ 2002-08-06 15:46 UTC (permalink / raw)
  To: gcc-gnats


>Number:         7512
>Category:       c++
>Synopsis:       ld getting passed incorrect options with hppa64-hp-hpux11.00
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Aug 06 15:46:01 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     Keith Richling
>Release:        3.1.1
>Organization:
>Environment:

>Description:
When g++ is asked to build a shared library through the
-shared option on hppa64-hp-hpux11.00 I get the following
error:

ld: Unrecognized argument: -shared
Fatal error.
collect2: ld returned 1 exit status
>How-To-Repeat:
// Begin foo.C
#include <iostream>
int main() {
  std::cout << "Hello world." << std::endl;
}
// End foo.C

I built g++ using the configure options of
--host=hppa64-hp-hpux11.00
--disable-shared
--disable-threads
--without-gnu-ld
--with-ld=/usr/ccs/bin/ld
--with-gnu-as
--with-as=/PATH_TO_BINUTILS/as
--enable-languages=c,c++

I get the error with the following compile lines:
g++ -c foo.C
g++ -shared foo.o -o foo.sl
>Fix:
Applied the following change to gcc/config/pa/pa64-hpux.h

26c26
<   "-E %{mlinker-opt:-O} %{!shared:-u main} %{static:-a archive} %{shared:-shared}"
---
>   "-E %{mlinker-opt:-O} %{!shared:-u main} %{static:-a archive} %{shared:-b}"
>Release-Note:
>Audit-Trail:
>Unformatted:


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2002-11-15 23:42 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-11-21 14:50 c++/7512: ld getting passed incorrect options with hppa64-hp-hpux11.00 danglin
  -- strict thread matches above, loose matches on Subject: below --
2002-08-06 15:46 keith_richling

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