On PowerPC, always specify '-m32' for 32bit compiles. We don't know whether the compiler defaults to creating 32bit or 64bit binaries so it's best to play it safe and be explicit.
Signed-off-by: Adam Litke <[EMAIL PROTECTED]> diff -purN libhugetlbfs-2.0.orig//Makefile libhugetlbfs-2.0/Makefile --- libhugetlbfs-2.0.orig//Makefile 2008-08-14 11:46:38.000000000 -0500 +++ libhugetlbfs-2.0/Makefile 2008-10-14 10:41:22.000000000 -0500 @@ -29,12 +29,12 @@ ELF64 = elf64ppc LIB64 = lib64 LIB32 = lib ifneq ($(BUILDTYPE),NATIVEONLY) -CC32 = gcc +CC32 = gcc -m32 ELF32 = elf32ppclinux endif else ifeq ($(ARCH),ppc) -CC32 = gcc +CC32 = gcc -m32 ELF32 = elf32ppclinux LIB32 = lib else -- Adam Litke - (agl at us.ibm.com) IBM Linux Technology Center ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Libhugetlbfs-devel mailing list Libhugetlbfs-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/libhugetlbfs-devel