This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Pthread problems on HP-UX 10.20
- To: Mike Romberg <romberg at fsl dot noaa dot gov>
- Subject: Re: Pthread problems on HP-UX 10.20
- From: Jeffrey A Law <law at cygnus dot com>
- Date: Sun, 25 Oct 1998 12:16:10 -0700
- cc: gcc at sunburst dot rose dot hp dot com, egcs at cygnus dot com
- Reply-To: law at cygnus dot com
In message <199810231642.KAA02847@bahamut.fsl.noaa.gov>you write:
> I bumped into this same problem and "fixed" it by modifying
> g++spec.c. I'm pretty sure this is not the correct way to do this.
> But it does seem to work. Here is the change I made to
> gcc/cp/g++spec.c:
>
> /* Add `-lstdc++' if we haven't already done so. */
> if (library)
> {
> arglist[j++] = "-lstdc++";
> added_libraries++;
> + arglist[j++] = "-ldce";
> + added_libraries++;
> }
>
> Perhaps someone else knows a better way to do this.
I would think this can/should be done with spec files. That way it doesn't
screw systems without dce libraries :-)
See the various LINK_SPEC in gcc/config/pa/*.h
jeff