Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/libkvm Add workaround for building with ${MACHINE}==spar...



details:   https://anonhg.NetBSD.org/src/rev/a6c68809787c
branches:  trunk
changeset: 543620:a6c68809787c
user:      lukem <lukem%NetBSD.org@localhost>
date:      Sat Mar 01 06:10:39 2003 +0000

description:
Add workaround for building with ${MACHINE}==sparc64, ${MACHINE_ARCH}==sparc;
symlink the appropriate machine & sparc include directories into the objdir.

XXX: this is necessary until (when?) the sparc Arch Dependent headers
(used by MACHINE_ARCH==sparc) are separated from the sparc Machine
Dependent headeres (used by MACHINE==sparc but not MACHINE==sparc64).

diffstat:

 lib/libkvm/Makefile |  19 ++++++++++++++++++-
 1 files changed, 18 insertions(+), 1 deletions(-)

diffs (31 lines):

diff -r 898121b7c913 -r a6c68809787c lib/libkvm/Makefile
--- a/lib/libkvm/Makefile       Sat Mar 01 05:55:51 2003 +0000
+++ b/lib/libkvm/Makefile       Sat Mar 01 06:10:39 2003 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.39 2003/01/18 10:40:41 thorpej Exp $
+#      $NetBSD: Makefile,v 1.40 2003/03/01 06:10:39 lukem Exp $
 #      from: @(#)Makefile      8.1 (Berkeley) 6/4/93
 
 USE_SHLIBDIR=  yes
@@ -40,4 +40,21 @@
 MLINKS+=kvm_dump.3 kvm_dump_mkheader.3 kvm_dump.3 kvm_dump_wrtheader.3
 MLINKS+=kvm_dump.3 kvm_dump_inval.3
 
+# This fixes building with MACHINE==sparc64, MACHINE_ARCH==sparc
+# XXX: this is a hack, but until the sparc MD headers are separated
+#      out from the sparc AD headers, it's the easiest solution.
+#
+.if (${MACHINE_ARCH} == "sparc")       # {
+.if !make(obj) && !make(clean) && !make(cleandir)
+.BEGIN:
+       @([ -h machine ] || \
+           ln -fs ${NETBSDSRCDIR}/sys/arch/sparc/include machine)
+       @([ -h sparc ] || ln -fs ${NETBSDSRCDIR}/sys/arch/sparc/include sparc)
+.NOPATH: machine sparc
+.endif
+CLEANFILES+=   machine sparc
+CPPFLAGS+=     -I.
+.endif                                 # }
+
+
 .include <bsd.lib.mk>



Home | Main Index | Thread Index | Old Index