> From: Pascal Stumpf <pas...@stumpf.co>
> Date: Thu, 27 Jul 2023 21:20:25 +0200
> 
> On Thu, 27 Jul 2023 17:38:34 +0200, Mark Kettenis wrote:
> > With this diff I can build the gcc 11 port on a machine that
> > implements BTI.  As far as I can tell the option has no effect on
> > non-arm64 machines.
> > 
> > ok?
> 
> OK.
> 
> But now there's two methods for doing this, depending on the
> architecture, which I'll need to keep in mind.  Oh well.

Yes, unfortunately the situation is similar as with llvm.  At least
here there is a simple configure option that can be enabled.

> > Index: lang/gcc/11/Makefile
> > ===================================================================
> > RCS file: /cvs/ports/lang/gcc/11/Makefile,v
> > retrieving revision 1.19
> > diff -u -p -r1.19 Makefile
> > --- lang/gcc/11/Makefile    2 Jul 2023 15:33:26 -0000       1.19
> > +++ lang/gcc/11/Makefile    27 Jul 2023 15:34:15 -0000
> > @@ -18,7 +18,7 @@ USE_NOEXECONLY = Yes
> >  V = 11.2.0
> >  FULL_VERSION = $V
> >  FULL_PKGVERSION = $V
> > -REVISION = 7
> > +REVISION = 8
> >  
> >  ADASTRAP-amd64 = adastrap-amd64-$V-3.tar.xz
> >  ADASTRAP-arm = adastrap-arm-4.9.4-0.tar.xz
> > @@ -155,7 +155,8 @@ CONFIGURE_ARGS += \
> >     --enable-languages=${LANGS} \
> >     --disable-libstdcxx-pch \
> >     --enable-default-pie \
> > -   --without-isl
> > +   --enable-standard-branch-protection \
> > +   --without-isl   
> >  
> >  # Enable the stack protector by default where supported
> >  .if ${MACHINE_ARCH} != "riscv64"
> 

Reply via email to