Re: [PATCH] build: add -Wl,-rpath=path to $gmplibs (issue 7124057)

2013-01-19 Thread Paolo Bonzini
Il 18/01/2013 18:48, Mike Stump ha scritto: > Now, I'm happy to have a shared library expert weigh in and explain > why we should not fail the build… I'm happy to defer to them, if > there is a compelling reason why someone would compile things this > way. I just can't help but think we serve the

Re: [PATCH] build: add -Wl,-rpath=path to $gmplibs (issue 7124057)

2013-01-18 Thread Mike Stump
On Jan 17, 2013, at 12:05 PM, minux wrote: > On Fri, Jan 18, 2013 at 3:39 AM, Mike Stump wrote: >> On Jan 17, 2013, at 11:11 AM, minux...@gmail.com wrote: >>> some systems (notably NetBSD), doesn't place the path where libgmp, >> >> I think gcc should try and build and run a gmp program and fail

Re: [PATCH] build: add -Wl,-rpath=path to $gmplibs (issue 7124057)

2013-01-18 Thread Paolo Bonzini
Il 17/01/2013 21:05, minux ha scritto: >> > >> > I think gcc should try and build and run a gmp program and fail to >> > configure if the binary can't also run. This prevents configuring and >> > building on such a system. The gcc directions for building gmp and >> > friends should say that th

Re: [PATCH] build: add -Wl,-rpath=path to $gmplibs (issue 7124057)

2013-01-17 Thread minux
On Fri, Jan 18, 2013 at 3:39 AM, Mike Stump wrote: > On Jan 17, 2013, at 11:11 AM, minux...@gmail.com wrote: >> some systems (notably NetBSD), doesn't place the path where libgmp, > > I think gcc should try and build and run a gmp program and fail to configure > if the binary can't also run. Thi

Re: [PATCH] build: add -Wl,-rpath=path to $gmplibs (issue 7124057)

2013-01-17 Thread Mike Stump
On Jan 17, 2013, at 11:11 AM, minux...@gmail.com wrote: > some systems (notably NetBSD), doesn't place the path where libgmp, I think gcc should try and build and run a gmp program and fail to configure if the binary can't also run. This prevents configuring and building on such a system. The

Re: [PATCH] build: add -Wl,-rpath=path to $gmplibs (issue 7124057)

2013-01-17 Thread Mike Stump
On Jan 17, 2013, at 11:11 AM, minux...@gmail.com wrote: > I assume all the linkers that gcc bootstraps with have support for > the -rpath flag. I don't know that that is true either.

Re: [PATCH] build: add -Wl,-rpath=path to $gmplibs (issue 7124057)

2013-01-17 Thread Jakub Jelinek
On Thu, Jan 17, 2013 at 07:11:12PM +, minux...@gmail.com wrote: > Reviewers: bonzini_gnu.org, dj_redhat.com, neroden_gcc.gnu.org, > aoliva_redhat.com, ralf.wildenhues_gmx.de, > > Message: > some systems (notably NetBSD), doesn't place the path where libgmp, > libmpfr, libmpc resides into /etc/

[PATCH] build: add -Wl,-rpath=path to $gmplibs (issue 7124057)

2013-01-17 Thread minux . ma
Reviewers: bonzini_gnu.org, dj_redhat.com, neroden_gcc.gnu.org, aoliva_redhat.com, ralf.wildenhues_gmx.de, Message: some systems (notably NetBSD), doesn't place the path where libgmp, libmpfr, libmpc resides into /etc/ld.so.conf, and instead rely on the binary providing correct -rpath; this pat