Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 21 Oct 2002 12:47:43 +1000 (EST)
From:      Bruce Evans <bde@zeta.org.au>
To:        Andrew Gallatin <gallatin@cs.duke.edu>
Cc:        John Baldwin <jhb@FreeBSD.ORG>, <current@FreeBSD.ORG>, <ru@FreeBSD.ORG>, <obrien@FreeBSD.ORG>
Subject:   Re: New groff breaks alpha world
Message-ID:  <20021021124533.J9225-100000@gamplex.bde.org>
In-Reply-To: <15795.12533.559894.717547@grasshopper.cs.duke.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, 20 Oct 2002, Andrew Gallatin wrote:

> Would it be acceptable to apply the following patch to link groff
> statically so as to unbreak the alpha world while the binutils
> maintainer figures out why ld is broken?
>
> Index: Makefile
> ===================================================================
> RCS file: /home/ncvs/src/gnu/usr.bin/groff/src/roff/groff/Makefile,v
> retrieving revision 1.3
> diff -u -r1.3 Makefile
> --- Makefile	11 Apr 2002 11:06:05 -0000	1.3
> +++ Makefile	20 Oct 2002 22:29:48 -0000
> @@ -6,4 +6,10 @@
>  LDADD=		${LIBGROFF} -lm
>  CLEANFILES=	${MAN}
>
> +.if ${MACHINE_ARCH} == "alpha"
> +#XXXX ld produces only one PT_LOAD segment when this binary
> +#XXXX is linked dynamically, which confuses the rtld
> +LDFLAGS+= 	-static
> +.endif
> +
>  .include <bsd.prog.mk>

This should uses `NOSHARED=?yes' instead of an unportable linker flag.

Bruce


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20021021124533.J9225-100000>