mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-22 18:43:02 +01:00
Patch by Damyan Ivanov for Mipsel
This commit is contained in:
parent
7cc588038b
commit
d108970f7f
36
builds/posix/prefix.linux_mipsel
Normal file
36
builds/posix/prefix.linux_mipsel
Normal file
@ -0,0 +1,36 @@
|
|||||||
|
# The contents of this file are subject to the Interbase Public
|
||||||
|
# License Version 1.0 (the "License"); you may not use this file
|
||||||
|
# except in compliance with the License. You may obtain a copy
|
||||||
|
# of the License at http://www.Inprise.com/IPL.html
|
||||||
|
#
|
||||||
|
# Software distributed under the License is distributed on an
|
||||||
|
# "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either express
|
||||||
|
# or implied. See the License for the specific language governing
|
||||||
|
# rights and limitations under the License.
|
||||||
|
#
|
||||||
|
# The Original Code was created by Inprise Corporation
|
||||||
|
# and its predecessors. Portions created by Inprise Corporation are
|
||||||
|
# Copyright (C) Inprise Corporation.
|
||||||
|
#
|
||||||
|
# All Rights Reserved.
|
||||||
|
# Contributor(s): ______________________________________.
|
||||||
|
# Start of file prefix.linux: $(VERSION) $(PLATFORM)
|
||||||
|
#$Id: prefix.linux_mipsel,v 1.1 2007-04-01 10:04:28 alexpeshkoff Exp $
|
||||||
|
# 2 Oct 2002, Nickolay Samofatov - Major cleanup
|
||||||
|
|
||||||
|
LD=@CXX@
|
||||||
|
|
||||||
|
# -fno-builtin is used because GCC 3.0-3.2.2 had bug with builtins expansion
|
||||||
|
# you may remove it if engine is getting compiled with any other GCC version
|
||||||
|
PROD_FLAGS=-ggdb -O3 -fno-omit-frame-pointer -DNDEBUG -DLINUX -pipe -MMD -fPIC
|
||||||
|
DEV_FLAGS=-ggdb -DLINUX -DDEBUG_GDS_ALLOC -pipe -MMD -p -fPIC -Wall -Wno-switch
|
||||||
|
|
||||||
|
OS_ServerFiles=inet_server.cpp
|
||||||
|
|
||||||
|
LIB_LINK_OPTIONS:=-shared
|
||||||
|
LIB_LINK_RPATH:=-Wl,-rpath,
|
||||||
|
LIB_LINK_SONAME:=-Wl,-soname,
|
||||||
|
EMBED_UTIL_TARGETS=gstat gds_drop gds_relay gsec fb_lock_print
|
||||||
|
CLIENT_UTIL_TARGETS=gds_drop gds_relay gstat gsec fbguard fbmgr_bin fb_lock_print
|
||||||
|
|
||||||
|
Physical_IO_Module=unix.cpp
|
12
configure.in
12
configure.in
@ -79,6 +79,18 @@ case "$target" in
|
|||||||
SHRLIB_EXT=so
|
SHRLIB_EXT=so
|
||||||
;;
|
;;
|
||||||
|
|
||||||
|
mipsel-*-linux*)
|
||||||
|
MAKEFILE_PREFIX=linux_mipsel
|
||||||
|
INSTALL_PREFIX=linux
|
||||||
|
PLATFORM=LINUX
|
||||||
|
AC_DEFINE(LINUX)
|
||||||
|
LOCK_MANAGER_FLG=Y
|
||||||
|
EDITLINE_FLG=Y
|
||||||
|
SHRLIB_EXT=so
|
||||||
|
PTHREAD_CFLAGS=-pthread
|
||||||
|
PTHREAD_LIBS=-lpthread
|
||||||
|
;;
|
||||||
|
|
||||||
x86_64*-*-linux*)
|
x86_64*-*-linux*)
|
||||||
MAKEFILE_PREFIX=linux_amd64
|
MAKEFILE_PREFIX=linux_amd64
|
||||||
INSTALL_PREFIX=linux
|
INSTALL_PREFIX=linux
|
||||||
|
@ -133,6 +133,10 @@
|
|||||||
#define IMPLEMENTATION isc_info_db_impl_linux_sparc /* 65 */
|
#define IMPLEMENTATION isc_info_db_impl_linux_sparc /* 65 */
|
||||||
#endif /* sparc */
|
#endif /* sparc */
|
||||||
|
|
||||||
|
#ifdef MIPSEL
|
||||||
|
#define IMPLEMENTATION isc_info_db_impl_linux_mipsel /* 71 */
|
||||||
|
#endif /* mipsel */
|
||||||
|
|
||||||
#define MEMMOVE(from, to, length) memmove ((void *)to, (void *)from, (size_t) length)
|
#define MEMMOVE(from, to, length) memmove ((void *)to, (void *)from, (size_t) length)
|
||||||
#define MOVE_FAST(from, to, length) memcpy (to, from, (int) (length))
|
#define MOVE_FAST(from, to, length) memcpy (to, from, (int) (length))
|
||||||
#define MOVE_FASTER(from, to, length) memcpy (to, from, (int) (length))
|
#define MOVE_FASTER(from, to, length) memcpy (to, from, (int) (length))
|
||||||
|
@ -197,6 +197,7 @@ enum info_db_implementations
|
|||||||
|
|
||||||
isc_info_db_impl_linux_ppc = 69,
|
isc_info_db_impl_linux_ppc = 69,
|
||||||
isc_info_db_impl_darwin_x86 = 70,
|
isc_info_db_impl_darwin_x86 = 70,
|
||||||
|
isc_info_db_impl_linux_mipsel = 71,
|
||||||
|
|
||||||
isc_info_db_impl_last_value /* Leave this LAST! */
|
isc_info_db_impl_last_value /* Leave this LAST! */
|
||||||
};
|
};
|
||||||
|
@ -149,8 +149,9 @@ static const int CLASS_FREEBSD_AMD64 = 25;// FreeBSD/amd64
|
|||||||
static const int CLASS_WINDOWS_AMD64 = 26;// Windows/amd64
|
static const int CLASS_WINDOWS_AMD64 = 26;// Windows/amd64
|
||||||
static const int CLASS_LINUX_PPC = 27; // LINUX/PowerPC
|
static const int CLASS_LINUX_PPC = 27; // LINUX/PowerPC
|
||||||
static const int CLASS_DARWIN_I386 = 28; //Darwin/Intel
|
static const int CLASS_DARWIN_I386 = 28; //Darwin/Intel
|
||||||
|
static const int CLASS_LINUX_MIPSEL = 29; // LINUX/MIPS
|
||||||
static const int CLASS_MAX10 = CLASS_LINUX_AMD64; // This should not be changed, no new ports with ODS10
|
static const int CLASS_MAX10 = CLASS_LINUX_AMD64; // This should not be changed, no new ports with ODS10
|
||||||
static const int CLASS_MAX = CLASS_DARWIN_I386;
|
static const int CLASS_MAX = CLASS_LINUX_MIPSEL;
|
||||||
|
|
||||||
// ARCHITECTURE COMPATIBILITY CLASSES
|
// ARCHITECTURE COMPATIBILITY CLASSES
|
||||||
|
|
||||||
@ -234,7 +235,8 @@ static ArchitectureType archMatrix[CLASS_MAX + 1] = {
|
|||||||
archLittleEndian, // CLASS_FREEBSD_AMD64
|
archLittleEndian, // CLASS_FREEBSD_AMD64
|
||||||
archLittleEndian, // CLASS_WINDOWS_AMD64
|
archLittleEndian, // CLASS_WINDOWS_AMD64
|
||||||
archBigEndian, // CLASS_LINUX_PPC
|
archBigEndian, // CLASS_LINUX_PPC
|
||||||
archLittleEndian // CLASS_DARWIN_I386
|
archLittleEndian, // CLASS_DARWIN_I386
|
||||||
|
archLittleEndian // CLASS_LINUX_MIPSEL
|
||||||
};
|
};
|
||||||
|
|
||||||
#ifdef sun
|
#ifdef sun
|
||||||
@ -284,6 +286,8 @@ const SSHORT CLASS = CLASS_LINUX_SPARC;
|
|||||||
const SSHORT CLASS = CLASS_LINUX_AMD64;
|
const SSHORT CLASS = CLASS_LINUX_AMD64;
|
||||||
#elif defined(PPC)
|
#elif defined(PPC)
|
||||||
const SSHORT CLASS = CLASS_LINUX_PPC;
|
const SSHORT CLASS = CLASS_LINUX_PPC;
|
||||||
|
#elif defined(MIPSEL)
|
||||||
|
const SSHORT CLASS = CLASS_LINUX_MIPSEL;
|
||||||
#else
|
#else
|
||||||
#error no support on other hardware for Linux
|
#error no support on other hardware for Linux
|
||||||
#endif
|
#endif
|
||||||
|
@ -238,6 +238,7 @@ static const TEXT* const impl_implementation[] = {
|
|||||||
"Firebird/x86-64/Windows NT", /* 68 */
|
"Firebird/x86-64/Windows NT", /* 68 */
|
||||||
"Firebird/linux PowerPC", /* 69 */
|
"Firebird/linux PowerPC", /* 69 */
|
||||||
"Firebird/Darwin/Intel" /* 70 */
|
"Firebird/Darwin/Intel" /* 70 */
|
||||||
|
"Firebird/linux MIPSEL" /* 71 */
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
@ -39,7 +39,7 @@
|
|||||||
// The simpliest way to check it is to issue
|
// The simpliest way to check it is to issue
|
||||||
// "select abs(2.0/3.0) from rdb$database" from correct client
|
// "select abs(2.0/3.0) from rdb$database" from correct client
|
||||||
// It will return big strange value in case of invalid define
|
// It will return big strange value in case of invalid define
|
||||||
#if defined(i386) || defined(I386) || defined(_M_IX86) || defined(AMD64)
|
#if defined(i386) || defined(I386) || defined(_M_IX86) || defined(AMD64) || defined(MIPSEL)
|
||||||
#define SWAP_DOUBLE
|
#define SWAP_DOUBLE
|
||||||
#elif defined(sparc) || defined(PowerPC)
|
#elif defined(sparc) || defined(PowerPC)
|
||||||
#undef SWAP_DOUBLE
|
#undef SWAP_DOUBLE
|
||||||
|
Loading…
Reference in New Issue
Block a user