From 92d9bf11285ada6f6f904cf86a7c12b43e45fe90 Mon Sep 17 00:00:00 2001 From: stacktic Date: Sun, 15 Nov 2009 15:09:46 +0000 Subject: Fixed build on Linux/x86_64 CentOS5 (RHEL5). Reported and Fixed by Nicolas Joly. --- misc/rump/Makefile | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'misc') diff --git a/misc/rump/Makefile b/misc/rump/Makefile index 6067bcebff3..1557f1a0da2 100644 --- a/misc/rump/Makefile +++ b/misc/rump/Makefile @@ -1,9 +1,9 @@ -# $NetBSD: Makefile,v 1.12 2009/11/10 16:10:47 stacktic Exp $ +# $NetBSD: Makefile,v 1.13 2009/11/15 15:09:46 stacktic Exp $ # DISTNAME= rump_20091108 PKGNAME= ${DISTNAME:S/_/-/} -PKGREVISION= 1 +PKGREVISION= 2 CATEGORIES= misc MASTER_SITES= ftp://ftp.NetBSD.org/pub/NetBSD/misc/stacktic/ @@ -35,6 +35,14 @@ SUBST_SED.alloc+= -e "s|SRCS.*subr_pool.*|\# &|" .include "../../mk/bsd.prefs.mk" .if ${OPSYS} == "Linux" + +SUBST_CLASSES+= crt +SUBST_STAGE.crt= pre-configure +SUBST_MESSAGE.crt= Fix crt path. +SUBST_FILES.crt= share/mk/bsd.lib.mk share/mk/bsd.prog.mk +SUBST_SED.crt= -e "s|lib/crt|lib$$\{LIBABISUFFIX\}/crt|" +MAKEFLAGS+= LIBABISUFFIX=${LIBABISUFFIX} + MAKEFLAGS+= MACHINE=${MACHINE_ARCH:C/x86_64/amd64/} CRT_PATH!= gcc --print-file-name=crtbegin.o -- cgit v1.2.3