tech-pkg archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: MKPIE problems



No, it's not supported:

invalid value "pie" for flag -buildmode: buildmode pie not supported on netbsd/amd64

 Thomas

On Mon, Nov 13, 2017 at 06:28:49PM +0000, Benny Siegert wrote:
> I think Go uses -buildmode=pie but I don't know if this is supported on
> NetBSD.
> 
> Thomas Klausner <wiz%netbsd.org@localhost> schrieb am Mo., 13. Nov. 2017, 17:33:
> 
> > On Mon, Nov 13, 2017 at 05:31:03PM +0100, Pierre Pronchery wrote:
> > >               Hi Thomas, Benny, tech-pkg@,
> > >
> > > On 13/11/2017 16:50, Thomas Klausner wrote:
> > > > I see a couple problems when enabling MKPIE (in addition to the other
> > > > hardening flags):
> > > >
> > > > 1. imake-using builds fail, e.g. net/wmpload & x11/xp:
> > > > [...]
> > >
> > > Yes I am observing the same with audio/nas, after Greg Troxel pointed me
> > > to it today.
> > >
> > > > 2. lang/go fails:
> > > >
> > > > ld: -r and -pie may not be used together
> > >
> > > Do you have the latest version of cwrappers? I believe I fixed this
> > > issue there already. The package still fails to build for me with this
> > > fix though.
> >
> > Yes, that is in a from-scratch build with pkgsrc from one or two days
> > ago.
> >
> > Cheers,
> >  Thomas
> >
> > > I realize now that I may have forgotten to fix this issue without
> > > cwrappers by the way. I can look into it.
> > >
> > > > 3. some packages need -fPIC, e.g. soundtouch and tlsh:
> > > > [...]
> > >
> > > Thanks for the heads up, I'll have a look too.
> > >
> > > > That's it so far, I think.
> > >
> > > Excellent :)
> > >
> > > Cheers,
> > > --
> > > khorben
> > >
> >
> >
> >
> >


Home | Main Index | Thread Index | Old Index