This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Pthread problems on HP-UX 10.20



  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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]