Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 17 Jan 2017 14:32:24 +0000 (UTC)
From:      Alexey Dokuchaev <danfe@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r431740 - head/games/aestats
Message-ID:  <201701171432.v0HEWOqO085287@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: danfe
Date: Tue Jan 17 14:32:24 2017
New Revision: 431740
URL: https://svnweb.freebsd.org/changeset/ports/431740

Log:
  Allow to build on amd64 in addition to i386, by calling ${CC} with `-m32'
  argument.  (No idea why I haven't done this years earlier.)

Modified:
  head/games/aestats/Makefile

Modified: head/games/aestats/Makefile
==============================================================================
--- head/games/aestats/Makefile	Tue Jan 17 14:13:22 2017	(r431739)
+++ head/games/aestats/Makefile	Tue Jan 17 14:32:24 2017	(r431740)
@@ -12,13 +12,13 @@ COMMENT=	Advanced HTML statistics genera
 
 NO_CDROM=	Commercial use is prohibited
 
-ONLY_FOR_ARCHS=	i386
+ONLY_FOR_ARCHS=	i386 amd64
 
 USES=		zip
 WRKSRC=		${WRKDIR}/${DISTNAME}/Linux-o
 LINUXBINDIR=	${WRKSRC}/../Linux-Bin
 MAKEFILE=	makefile
-MAKE_ARGS=	cc=${CC}
+MAKE_ARGS=	cc="${CC} -m32"
 
 post-extract: .SILENT
 	${CP} ${FILESDIR}/fbsd_stub.c ${WRKSRC}
@@ -30,7 +30,7 @@ post-extract: .SILENT
 # us Linux .o files instead.  With some hacking, we can build native FreeBSD
 # executables from those .o files.
 pre-build:
-	cd ${WRKSRC} && ${CC} ${CFLAGS} -c fbsd_stub.c
+	cd ${WRKSRC} && ${CC} -m32 ${CFLAGS} -c fbsd_stub.c
 	${OBJCOPY} --redefine-sym stdout=__stdoutp ${WRKSRC}/aespages.o
 	${OBJCOPY} --redefine-sym stdout=__stdoutp ${WRKSRC}/paessubs.o
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201701171432.v0HEWOqO085287>