diff options
author | bde <bde@FreeBSD.org> | 1999-02-06 07:48:24 +0000 |
---|---|---|
committer | bde <bde@FreeBSD.org> | 1999-02-06 07:48:24 +0000 |
commit | 87e388cc706502f114a0af13ef8bd7a7deb21795 (patch) | |
tree | 03be1e221681b14b52ca368d600c65142f5601a5 /sys/modules/svr4 | |
parent | 638895c10331fb601bb5f289b63cb69f1e731ca5 (diff) | |
download | FreeBSD-src-87e388cc706502f114a0af13ef8bd7a7deb21795.zip FreeBSD-src-87e388cc706502f114a0af13ef8bd7a7deb21795.tar.gz |
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.
Diffstat (limited to 'sys/modules/svr4')
-rw-r--r-- | sys/modules/svr4/Makefile | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/sys/modules/svr4/Makefile b/sys/modules/svr4/Makefile index 9c12712..94a945b 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 |