summaryrefslogtreecommitdiff
path: root/devel/bcc
diff options
context:
space:
mode:
authortnn <tnn@pkgsrc.org>2009-07-14 17:26:35 +0000
committertnn <tnn@pkgsrc.org>2009-07-14 17:26:35 +0000
commit222bff7b78db2c8c4e3cad89b085f1198fb21ea9 (patch)
tree335d56f949f34ab05c8412fb3cedc8b179feda8f /devel/bcc
parenta7365786c983f60c3585449db39e7b1949fffbd0 (diff)
downloadpkgsrc-222bff7b78db2c8c4e3cad89b085f1198fb21ea9.tar.gz
Allow the package to build on amd64, but use -m32 due to LP64 issues.
Diffstat (limited to 'devel/bcc')
-rw-r--r--devel/bcc/Makefile10
1 files changed, 8 insertions, 2 deletions
diff --git a/devel/bcc/Makefile b/devel/bcc/Makefile
index 307284c850b..74ec048c4d4 100644
--- a/devel/bcc/Makefile
+++ b/devel/bcc/Makefile
@@ -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 @@ COMMENT= Bruce Evans' C compiler (with as and ld); can do 16-bit code
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 @@ INSTALLATION_DIRS= bin lib/bcc ${PKGMANDIR}/cat1 ${PKGMANDIR}/man1
.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