yaffs: Enable 64-bit building of python library
authorCharles Manning <cdhmanning@gmail.com>
Tue, 19 Oct 2010 23:39:57 +0000 (12:39 +1300)
committerCharles Manning <cdhmanning@gmail.com>
Tue, 19 Oct 2010 23:39:57 +0000 (12:39 +1300)
Needs the -fPIC flag.

Signed-off-by: Charles Manning <cdhmanning@gmail.com>
direct/python/Makefile

index e5aa96dd5a9f34ba9248b2aab08e3964d884ffe7..a6cfc4e3718563233a4c89647108f2752cb3ae87 100644 (file)
@@ -22,7 +22,7 @@ CFLAGS =      -DCONFIG_YAFFS_DIRECT -DCONFIG_YAFFS_SHORT_NAMES_IN_RAM -DCONFIG_Y
 CFLAGS +=     -DCONFIG_YAFFS_PROVIDE_DEFS -DCONFIG_YAFFSFS_PROVIDE_VALUES -DNO_Y_INLINE
 CFLAGS +=    -Wall -g $(EXTRA_COMPILE_FLAGS) -Wstrict-aliasing 
 #CFLAGS +=    -fno-strict-aliasing
-CFLAGS +=    -O0
+CFLAGS +=    -O0 -fPIC
 #CFLAGS +=    -DVALGRIND_TEST
 
 #CFLAGS+=   -Wshadow -Wpointer-arith -Wwrite-strings -Wstrict-prototypes -Wmissing-declarations