Re: Fix profiling support in gcc 4.2

2013-03-26 Thread Pascal Stumpf
On Tue, 26 Mar 2013 16:39:54 -0700, Philip Guenther wrote: > On Tue, Mar 26, 2013 at 3:45 PM, Pascal Stumpf wrote: > ... > >> Anyway, can we then just ignore the -pg option if it doesn't work for > >> shared instead of breaking the link? Or do you have a better solution? > > > > I could do that (i

Re: Fix profiling support in gcc 4.2

2013-03-26 Thread Philip Guenther
On Tue, Mar 26, 2013 at 3:45 PM, Pascal Stumpf wrote: ... >> Anyway, can we then just ignore the -pg option if it doesn't work for >> shared instead of breaking the link? Or do you have a better solution? > > I could do that (if I figure out the correct gcc specs), sure. Change this: %l %{pie:

Re: Fix profiling support in gcc 4.2

2013-03-26 Thread Pascal Stumpf
On Tue, 26 Mar 2013 23:05:05 +0100 (CET), Mark Kettenis wrote: > > Date: Tue, 26 Mar 2013 23:54:20 +0200 > > From: Paul Irofti > > I don't understand how, can you go into more details please? > > > > Anyway, can we then just ignore the -pg option if it doesn't work for > > shared instead of break

Re: Fix profiling support in gcc 4.2

2013-03-26 Thread Pascal Stumpf
On Tue, 26 Mar 2013 23:54:20 +0200, Paul Irofti wrote: > On Tue, Mar 26, 2013 at 09:15:38PM +0100, Pascal Stumpf wrote: > > On Tue, 26 Mar 2013 21:48:42 +0200, Paul Irofti wrote: > > > Good evening everyone, > > > > > > I discovered about one or two weeks ago that I can't link any debug > > > libr

Re: Fix profiling support in gcc 4.2

2013-03-26 Thread Mark Kettenis
> Date: Tue, 26 Mar 2013 23:54:20 +0200 > From: Paul Irofti > I don't understand how, can you go into more details please? > > Anyway, can we then just ignore the -pg option if it doesn't work for > shared instead of breaking the link? Or do you have a better solution? Perhaps ld shouldn't set l

Re: Fix profiling support in gcc 4.2

2013-03-26 Thread Paul Irofti
On Tue, Mar 26, 2013 at 09:15:38PM +0100, Pascal Stumpf wrote: > On Tue, 26 Mar 2013 21:48:42 +0200, Paul Irofti wrote: > > Good evening everyone, > > > > I discovered about one or two weeks ago that I can't link any debug > > libraries on OpenBSD. At first I thought it was a cmake update[1] but >

Re: Fix profiling support in gcc 4.2

2013-03-26 Thread Pascal Stumpf
On Tue, 26 Mar 2013 21:48:42 +0200, Paul Irofti wrote: > Good evening everyone, > > I discovered about one or two weeks ago that I can't link any debug > libraries on OpenBSD. At first I thought it was a cmake update[1] but > then I started digging further and it turns out its our gcc. This is no

Fix profiling support in gcc 4.2

2013-03-26 Thread Paul Irofti
Good evening everyone, I discovered about one or two weeks ago that I can't link any debug libraries on OpenBSD. At first I thought it was a cmake update[1] but then I started digging further and it turns out its our gcc. What threw me off is that gcc-4.7 from ports behaves the same way, but I la