summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorobrien <obrien@FreeBSD.org>2002-10-21 00:26:48 +0000
committerobrien <obrien@FreeBSD.org>2002-10-21 00:26:48 +0000
commit858d34bb9c061a4c351d04f1914cf16b73cedc1c (patch)
treee736353f59fdb48cbd9be8e0c282c8bbe2cd5248
parentddccb9e2b33e68c8a11dbbc218d733d43d95250c (diff)
downloadFreeBSD-src-858d34bb9c061a4c351d04f1914cf16b73cedc1c.zip
FreeBSD-src-858d34bb9c061a4c351d04f1914cf16b73cedc1c.tar.gz
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
-rw-r--r--gnu/usr.bin/groff/src/roff/groff/Makefile6
1 files changed, 6 insertions, 0 deletions
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 <bsd.prog.mk>
OpenPOWER on IntegriCloud