From 858d34bb9c061a4c351d04f1914cf16b73cedc1c Mon Sep 17 00:00:00 2001 From: obrien Date: Mon, 21 Oct 2002 00:26:48 +0000 Subject: Unbreak Alpha world. We are seeing "/usr/libexec/ld-elf.so.1: groff: too few PT_LOAD segments", however it appears that there really is only one PT_LOAD segment in the groff binary. It is unclear if `rtld' or `ld' is at fault here -- but using an RELENG_4 `ld' binary allows one to build a working dynamic groff binary. Submitted by: gallatin --- gnu/usr.bin/groff/src/roff/groff/Makefile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/gnu/usr.bin/groff/src/roff/groff/Makefile b/gnu/usr.bin/groff/src/roff/groff/Makefile index d057d50..313dd6f 100644 --- a/gnu/usr.bin/groff/src/roff/groff/Makefile +++ b/gnu/usr.bin/groff/src/roff/groff/Makefile @@ -6,4 +6,10 @@ DPADD= ${LIBGROFF} ${LIBM} 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 -- cgit v1.1