Re: editors/emacs21 on vax

"Sebastian Reitenbach" <[email protected]> Thu, 09 Jan 2014 22:19:36 +0100
Newsgroups gmane.os.openbsd.vax
Message-ID <11c5-52cf1280-3-6b8b4580@26413221>
Hi,

 
On Thursday, January 9, 2014 19:49 CET, Stuart Henderson <[email protected]> wrote: 
 
> So we had this working for a while, but it looks like either the switch
> to gcc 3, or the change in LDFLAGS/CFLAGS to pass -nopie/-fno-pie by
> default, broke editors/emacs21 on vax.
> 
> Does anyone have time to try a build with those flags removed from the
> Makefile to see if just removing them, i.e. the diff below, is enough?
> (if so, it can be made arch dependent, haven't done that here for the
> sake of a simpler diff). It's probably a long shot but worth a go
> before digging into anything further...

I'll give it a try tomorrow on vax.p.

Sebastian

> 
> Index: Makefile
> ===================================================================
> RCS file: /cvs/ports/editors/emacs21/Makefile,v
> retrieving revision 1.71
> diff -u -p -r1.71 Makefile
> --- Makefile	9 Nov 2013 23:19:03 -0000	1.71
> +++ Makefile	9 Jan 2014 18:47:56 -0000
> @@ -36,8 +36,7 @@ MODGNU_EMACS_YOURE_WEIRD = Oh yes
>  
>  CONFIGURE_STYLE=	gnu dest
>  CONFIGURE_ARGS=		${GCCARCH} --with-pop --with-system-malloc
> -LDFLAGS=		-Z -L${LOCALBASE}/lib -nopie
> -CFLAGS +=		-fno-pie
> +LDFLAGS=		-Z -L${LOCALBASE}/lib
>  
>  CONFIGURE_ENV=		CPPFLAGS="-I${LOCALBASE}/include" \
>  			LDFLAGS="${LDFLAGS}"