Honor ${LDFLAGS} for building svr4_genassym. This is part of fixing
world breakage (mainly for cross-world cases). The world Makefile attempts to build tools static so that nonexistent or wrong shared libraries and interpreters don't get used. This is broken anyway since the world Makefile doesn't know about svr4_genassym. Force building svr4_genassym static. This is part of "fixing" aout-to-elf-build breakage. aout-to-elf-build abuses NOTOOLS to avoid rebuilding all the aout tools. This saves time and avoids some complications. However, it breaks all the internal tools -- they get linked to target libraries which might not work. Cases where the host can run the target's static libraries are "fixed" by encrufting all Makefiles that build internal tools to build the tools static. Don't add .depend to CLEANFILES -- it just breaks the separation of `make cleandepend' from `make clean'. Removed some superflous explicit dependencies.
This commit is contained in:
parent
2b0d37a4f8
commit
b36c1562e1
@ -1,4 +1,4 @@
|
||||
# $Id$
|
||||
# $Id: Makefile,v 1.1 1999/01/30 06:29:48 newton Exp $
|
||||
|
||||
.PATH: ${.CURDIR}/../../i386/svr4 ${.CURDIR}/../../svr4
|
||||
KMOD= svr4
|
||||
@ -19,7 +19,7 @@ CFLAGS+= -DDEBUG_SVR4
|
||||
|
||||
EXPORT_SYMS=_svr4_mod
|
||||
CLEANFILES+= vnode_if.h vnode_if.c svr4_genassym.o svr4_genassym \
|
||||
svr4_assym.h opt_compat.h opt_vmpage.h .depend
|
||||
svr4_assym.h opt_compat.h opt_vmpage.h
|
||||
|
||||
build-tools: svr4_genassym
|
||||
|
||||
@ -34,9 +34,7 @@ svr4_genassym.o: svr4_genassym.c svr4.h @ machine
|
||||
${CC} -c ${CFLAGS} -UKERNEL ${.IMPSRC}
|
||||
|
||||
svr4_genassym: svr4_genassym.o
|
||||
${CC} ${CFLAGS} ${.ALLSRC} -o ${.TARGET}
|
||||
|
||||
svr4_sysvec.o: opt_vmpage.h opt_compat.h
|
||||
${CC} -static ${CFLAGS} ${LDFLAGS} -o ${.TARGET} ${.ALLSRC}
|
||||
|
||||
opt_compat.h:
|
||||
echo "#define COMPAT_43 1" > opt_compat.h
|
||||
|
Loading…
Reference in New Issue
Block a user