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 [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message

Reply via email to