Deal with a real PITA in that GDB 4.18 (as we imported it) requires a
`wait.h' that was in contrib/binutils/, however this wait.h went away with bintuils 2.10.0 so I `cvs rm'ed it. Now we find gdb will not build. This binutils wait.h contained nothing we didn't already have in <sys/wait.h>. So just hack a symlink to it.
This commit is contained in:
parent
16e3f2c22a
commit
7c5d9e57f8
@ -27,6 +27,7 @@ XSRCS= annotate.c ax-general.c ax-gdb.c bcache.c blockframe.c \
|
|||||||
typeprint.c utils.c valarith.c valops.c valprint.c values.c \
|
typeprint.c utils.c valarith.c valops.c valprint.c values.c \
|
||||||
version.c serial.c ser-unix.c ser-tcp.c
|
version.c serial.c ser-unix.c ser-tcp.c
|
||||||
SRCS= init.c ${XSRCS}
|
SRCS= init.c ${XSRCS}
|
||||||
|
SRCS+= wait.h
|
||||||
|
|
||||||
.if exists(${.CURDIR}/Makefile.${MACHINE_ARCH})
|
.if exists(${.CURDIR}/Makefile.${MACHINE_ARCH})
|
||||||
.include "${.CURDIR}/Makefile.${MACHINE_ARCH}"
|
.include "${.CURDIR}/Makefile.${MACHINE_ARCH}"
|
||||||
@ -64,7 +65,7 @@ CFLAGS+= -DNO_MMALLOC
|
|||||||
#CFLAGS+= -g
|
#CFLAGS+= -g
|
||||||
YFLAGS=
|
YFLAGS=
|
||||||
|
|
||||||
CLEANFILES= init.c init.c-tmp
|
CLEANFILES= init.c init.c-tmp wait.h
|
||||||
|
|
||||||
# We do this by grepping through sources. If that turns out to be too slow,
|
# We do this by grepping through sources. If that turns out to be too slow,
|
||||||
# maybe we could just require every .o file to have an initialization routine
|
# maybe we could just require every .o file to have an initialization routine
|
||||||
@ -108,4 +109,7 @@ init.c: ${XSRCS}
|
|||||||
|
|
||||||
.PRECIOUS: init.c
|
.PRECIOUS: init.c
|
||||||
|
|
||||||
|
wait.h:
|
||||||
|
ln -sf ${.CURDIR}/../../../../sys/sys/wait.h ${.TARGET}
|
||||||
|
|
||||||
.include <bsd.prog.mk>
|
.include <bsd.prog.mk>
|
||||||
|
Loading…
Reference in New Issue
Block a user