From: <ar...@cs...> - 2006-11-15 12:22:19
|
Wed Nov 15 13:10:06 CET 2006 Arie Middelkoop <ar...@cs...> * Added the -fPIC compiler flag to CXX options in the makefile. = Apparantly, my platform (gentoo x86_64 linux) required that .o files are = "relocatable" when there = are linked into a dynamic library. = (It might be an idea to use libtool to hide this kind of platform-specifi= c details) = Wed Nov 15 13:14:08 CET 2006 Arie Middelkoop <ar...@cs...> * Compiling wxHaskell on a 64bits platform fails, because there are some assumptions in the code that assume that integers are 32bits. For example, there are a couple of assignments of a pointer to an int. = This patch fixes these problems. Sometimes, after assigning a pointer to an integer, the int was used as a boolean value. In those cases, instead of returning a pointer p, I changed the code to return p !=3D NULL. In two other cases, a pointer is stored inside the int and in these cases I changed the type of the int to intptr_t, of which it is guaranteed that a pointer can be assigned to it and recovered from it (requires <inttypes.h>, i'm not sure if it is available of windows platforms though). |