ifolder/dev-db/libflaim/files/libflaim-hppa.patch

73 lines
1.9 KiB
Diff

--- Makefile.orig 2010-07-06 08:43:35.000000000 +0200
+++ Makefile 2010-07-06 08:45:27.000000000 +0200
@@ -462,6 +462,14 @@
endif
ifndef host_native_word_size
+ ifneq (,$(findstring parisc,$(HOSTTYPE)))
+ host_processor_family = hppa
+ host_native_word_size = 32
+ host_supported_word_sizes = 32
+ endif
+endif
+
+ifndef host_native_word_size
$(error Unable to determine host word size. $(HOSTTYPE))
endif
--- Makefile 2010-07-06 08:53:52.000000000 +0200
+++ Makefile 2010-07-06 08:53:45.000000000 +0200
@@ -1027,7 +1027,9 @@
ifeq ($(compiler),g++)
ccflags += -Wall -Werror -fPIC
ifneq ($(target_processor_family),ia64)
- ccflags += -m$(target_word_size)
+ ifneq ($(HOSTTYPE),parisc)
+ ccflags += -m$(target_word_size)
+ endif
endif
endif
--- src/flaimtk.h.orig 2010-07-06 08:59:48.000000000 +0200
+++ src/flaimtk.h 2010-07-06 09:02:19.000000000 +0200
@@ -54,6 +54,7 @@
#undef FLM_GNUC
#undef FLM_HAS_ASYNC_IO
#undef FLM_HAS_DIRECT_IO
+ #undef FLM_PARISC
#if defined( __GNUC__)
#define FLM_GNUC
@@ -149,6 +150,10 @@
#endif
#elif defined( __x86__) || defined( __i386__) || defined( __x86_64__)
#define FLM_X86
+ #elif defined( __hppa )
+ #define FLM_PARISC
+ #define FLM_BIG_ENDIAN
+ #define FML_STRICT_ALIGNMENT
#else
#error Platform architecture not supported
#endif
--- ftk/src/ftk.h.orig 2010-07-06 09:06:25.000000000 +0200
+++ ftk/src/ftk.h 2010-07-06 09:07:44.000000000 +0200
@@ -54,6 +54,7 @@
#undef FLM_GNUC
#undef FLM_HAS_ASYNC_IO
#undef FLM_HAS_DIRECT_IO
+ #undef FLM_PARISC
#if defined( __GNUC__)
#define FLM_GNUC
@@ -149,6 +150,10 @@
#endif
#elif defined( __x86__) || defined( __i386__) || defined( __x86_64__)
#define FLM_X86
+ #elif defined( __hppa )
+ #define FLM_PARISC
+ #define FLM_BIG_ENDIAN
+ #define FML_STRICT_ALIGNMENT
#else
#error Platform architecture not supported
#endif