diff options
author | Alexey Dokuchaev <danfe@FreeBSD.org> | 2017-01-17 22:32:24 +0800 |
---|---|---|
committer | Alexey Dokuchaev <danfe@FreeBSD.org> | 2017-01-17 22:32:24 +0800 |
commit | 3f4750f4d3c0a1a37dfaeaee27bafa7d495795a0 (patch) | |
tree | f2687fa0b7bc996bb8c1896be3276697aa31b193 /games | |
parent | fbfde359af6b2098ba8a4adb3a90736665cf1129 (diff) | |
download | freebsd-ports-gnome-3f4750f4d3c0a1a37dfaeaee27bafa7d495795a0.tar.gz freebsd-ports-gnome-3f4750f4d3c0a1a37dfaeaee27bafa7d495795a0.tar.zst freebsd-ports-gnome-3f4750f4d3c0a1a37dfaeaee27bafa7d495795a0.zip |
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.)
Diffstat (limited to 'games')
-rw-r--r-- | games/aestats/Makefile | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/games/aestats/Makefile b/games/aestats/Makefile index 0f4379856227..2a2ab91d505b 100644 --- a/games/aestats/Makefile +++ b/games/aestats/Makefile @@ -12,13 +12,13 @@ COMMENT= Advanced HTML statistics generator for various games 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 |