This has a list of macros that are defined for amd64 platforms: http://predef.sourceforge.net/prearch.html#sec3
This would be the far better way to handle the enabling or disabling of the _64BITS in a platform independent way. On Mon, Dec 14, 2009 at 9:34 AM, Alex Miller <[email protected]> wrote: > I've just finished making an ebuild for neko, and in the process, had to > patch a few things to get the install to work cleanly. Therefore, they're > getting sent upstream, and you're welcome to do whatever you'd like to with > them. > > neko-1.8.1-64bit.patch > From a package manager's perspective, it's not very easy to comment or > uncomment the 'CFLAGS += -D_64BITS' line. This patch uses the host's $CHOST > setting, (another option is to replace ${CHOST} with $(shell $(CC) > -dumpmachine) if you'd prefer not to rely on the env. variable) to check if > the host system is amd64 or not. > > neko-1.8.1-mysql_fpic.patch > In compiling the mysql module, you link to a static library with the > assumption that it's been compiled to be position independent. This is not > always the case... see mysql's bug about it. This changes the line so that > it will link against the .so version of the file, which is position > independent. > > neko-1.8.1-parallel.patch > You're missing a few dependencies in the makefile, so as it stands, you > must build neko with only one process running at a time, ie. make -j1. This > patch adds the missing dependencies (mainly just bin/neko and bin/std.ndll > when they're being used as part of a command) so that builds can be done in > parallel. > > neko-1.8.1-gentoo.patch > For the sake of completeness, I'm attaching this one also. It doesn't work > out well from a package manager's perspective if the program you're trying > to install waits for user's input. This removes the lines that ask where a > missing file can be found. >
-- Neko : One VM to run them all (http://nekovm.org)
