svn commit: r431740 - head/games/aestats
Alexey Dokuchaev
danfe at FreeBSD.org
Tue Jan 17 14:32:25 UTC 2017
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
More information about the svn-ports-head
mailing list