diff options
author | tnn <tnn> | 2009-07-14 17:26:35 +0000 |
---|---|---|
committer | tnn <tnn> | 2009-07-14 17:26:35 +0000 |
commit | 2f72aa54e13e6bd5881a9a23bfd1c5bafdc9e503 (patch) | |
tree | 335d56f949f34ab05c8412fb3cedc8b179feda8f /devel/bcc | |
parent | 8b7d367da07345705738ea4dd673b08432c910eb (diff) | |
download | pkgsrc-2f72aa54e13e6bd5881a9a23bfd1c5bafdc9e503.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/Makefile | 10 |
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 |