From f5d476f1da0dbbe373032db303588af966631003 Mon Sep 17 00:00:00 2001 From: Miod Vallat Date: Mon, 12 Jul 2004 10:44:12 +0000 Subject: m88k cross-compile goo. --- usr.bin/strip/Makefile | 7 ++++++- usr.bin/strip/strip.c | 9 +++++++-- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/usr.bin/strip/Makefile b/usr.bin/strip/Makefile index 39e4f52864d..c7390379843 100644 --- a/usr.bin/strip/Makefile +++ b/usr.bin/strip/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.10 2004/03/31 21:22:06 mickey Exp $ +# $OpenBSD: Makefile,v 1.11 2004/07/12 10:44:11 miod Exp $ TARGET_MACHINE_ARCH?= ${MACHINE_ARCH} @@ -14,6 +14,11 @@ CFLAGS+= -DMID_MACHINE_OVERRIDE=MID_M68K CPPFLAGS+=-I. beforedepend: ln -sf ${.CURDIR}/../../sys/arch/m68k/include m68k +.elif ${TARGET_MACHINE_ARCH} == "m88k" +CFLAGS+= -DMID_MACHINE_OVERRIDE=MID_M88K +CPPFLAGS+=-I. +beforedepend: + ln -sf ${.CURDIR}/../../sys/arch/m88k/include m88k .elif ${TARGET_MACHINE_ARCH} == "ns32k" CFLAGS+= -DMID_MACHINE_OVERRIDE=MID_NS32K .elif ${TARGET_MACHINE_ARCH} == "sparc" diff --git a/usr.bin/strip/strip.c b/usr.bin/strip/strip.c index 02d278874f4..1865fad235a 100644 --- a/usr.bin/strip/strip.c +++ b/usr.bin/strip/strip.c @@ -1,4 +1,4 @@ -/* $OpenBSD: strip.c,v 1.21 2004/03/31 21:22:06 mickey Exp $ */ +/* $OpenBSD: strip.c,v 1.22 2004/07/12 10:44:11 miod Exp $ */ /* * Copyright (c) 1988 Regents of the University of California. @@ -37,7 +37,7 @@ char copyright[] = #ifndef lint /*static char sccsid[] = "from: @(#)strip.c 5.8 (Berkeley) 11/6/91";*/ -static char rcsid[] = "$OpenBSD: strip.c,v 1.21 2004/03/31 21:22:06 mickey Exp $"; +static char rcsid[] = "$OpenBSD: strip.c,v 1.22 2004/07/12 10:44:11 miod Exp $"; #endif /* not lint */ #include @@ -63,6 +63,11 @@ static char rcsid[] = "$OpenBSD: strip.c,v 1.21 2004/03/31 21:22:06 mickey Exp $ #undef ELF_TARG_DATA #undef ELF_TARG_MACH #include "m68k/exec.h" +#elif MID_MACHINE_OVERRIDE == MID_M88K +#undef __LDPGSZ +#undef ELF_TARG_DATA +#undef ELF_TARG_MACH +#include "m88k/exec.h" #endif #endif -- cgit v1.2.3