> -----Original Message----- > From: H.J. Lu [mailto:hjl.to...@gmail.com] > Sent: Tuesday, November 12, 2013 11:30 AM > To: Gerald Pfeifer > Cc: Iyer, Balaji V; Jeff Law; GCC Patches > Subject: Re: [PATCH] Fix for PR bootstrap/58951 > > On Tue, Nov 12, 2013 at 7:16 AM, Gerald Pfeifer <ger...@pfeifer.com> > wrote: > > On Tue, 12 Nov 2013, Iyer, Balaji V wrote: > >>> Are you linking with -nostdlib or something similar? IIRC those > >>> routines are provided by libc on *bsd*. On other systems you may > >>> need to link in libdl via -ldl. > >> Yes, I am. In my system SUSE, I need to explicitly link it. > >>> I'm sure there's autoconf bits to test whether or not -ldl should be > >>> used for any given system. > >> Ah Ok. I will dig into it tomorrow. > > > > Thanks, appreciated! As a most simple approach, if others prove too > > complex, you could start by not linking in -ldl if it does not exist. > > I believe that'd be a strict improvement unbreaking several > > non-GNU/Linux platforms by itself. > > > > Gerald > > Please try this. >
This worked for me and I checked it in. Gerald, please let me know if you still have issues. Thanks for your help H. J. -Balaji V. Iyer. > -- > H.J.