From b36c1562e1e7aa56d3bd413fbb286b3296211c58 Mon Sep 17 00:00:00 2001 From: Bruce Evans Date: Sat, 6 Feb 1999 07:48:24 +0000 Subject: [PATCH] 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. --- sys/modules/svr4/Makefile | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/sys/modules/svr4/Makefile b/sys/modules/svr4/Makefile index 9c127126910..94a945b6a01 100644 --- a/sys/modules/svr4/Makefile +++ b/sys/modules/svr4/Makefile @@ -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