pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/devel/bcc Allow the package to build on amd64, but use...
details: https://anonhg.NetBSD.org/pkgsrc/rev/656508ebfbf9
branches: trunk
changeset: 395832:656508ebfbf9
user: tnn <tnn%pkgsrc.org@localhost>
date: Tue Jul 14 17:26:35 2009 +0000
description:
Allow the package to build on amd64, but use -m32 due to LP64 issues.
diffstat:
devel/bcc/Makefile | 10 ++++++++--
1 files changed, 8 insertions(+), 2 deletions(-)
diffs (31 lines):
diff -r 4b03eada455f -r 656508ebfbf9 devel/bcc/Makefile
--- a/devel/bcc/Makefile Tue Jul 14 15:59:48 2009 +0000
+++ b/devel/bcc/Makefile Tue Jul 14 17:26:35 2009 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.21 2008/03/08 00:13:43 reed Exp $
+# $NetBSD: Makefile,v 1.22 2009/07/14 17:26:35 tnn Exp $
DISTNAME= bcc
PKGREVISION= 1
@@ -11,7 +11,7 @@
CONFLICTS= bin86-[0-9]*
CONFLICTS+= dev86-[0-9]*
-NOT_FOR_PLATFORM= *-*-alpha *-*-x86_64 # Severe LP64 problems
+NOT_FOR_PLATFORM= *-*-alpha
NOT_FOR_PLATFORM+= Interix-*-* # no <a.out.h>
USE_BSD_MAKEFILE= yes
@@ -21,6 +21,12 @@
.include "../../mk/bsd.prefs.mk"
+.if ${MACHINE_ARCH} == "x86_64"
+# Has LP64 issues, so must build as 32-bit binary
+CFLAGS+= -m32
+LDFLAGS+= -m32
+.endif
+
.if ${OPSYS} == "DragonFly"
CPPFLAGS+= -D_POSIX_SOURCE
.endif
Home |
Main Index |
Thread Index |
Old Index