9 + MAKEFILE_PREFIX=darwin_arm64
10 + MAKEFILE_POSTFIX=darwin
12 + INSTALL_PREFIX=darwin
14 +$as_echo "#define DARWIN 1" >>confdefs.h
16 + LIBS="$LIBS -framework CoreFoundation"
20 + EXPORT_SYMBOLS_STYLE=darwin
25 MAKEFILE_PREFIX=darwin_i386
26 MAKEFILE_POSTFIX=darwin
27 --- src/common/common.h
28 +++ src/common/common.h
31 #define FB_CPU CpuPowerPc64
34 +// This means x86_64, but does it matter? There is no arch_arm64, arch_aarch64, arch_darwin_arm64,
35 +// or arch_darwin_aarch64 in the P_ARCH enum in src/remote/protocol.h.
37 +#define FB_CPU CpuArm64
40 #define QUADCONST(n) (n##LL)
41 #define QUADFORMAT "q"
46 #define FB_PLATFORM "UA"
48 +#if defined(__aarch64__)
49 +#define FB_PLATFORM "UB"
55 +++ builds/posix/prefix.darwin_arm64
57 +# The contents of this file are subject to the Interbase Public
58 +# License Version 1.0 (the "License"); you may not use this file
59 +# except in compliance with the License. You may obtain a copy
60 +# of the License at http://www.Inprise.com/IPL.html
62 +# Software distributed under the License is distributed on an
63 +# "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either express
64 +# or implied. See the License for the specific language governing
65 +# rights and limitations under the License.
67 +# The Original Code was created by Inprise Corporation
68 +# and its predecessors. Portions created by Inprise Corporation are
70 +# Copyright (C) 2000 Inprise Corporation
71 +# All Rights Reserved.
72 +# Contributor(s): ______________________________________.
73 +# Start of file prefix.darwin: $(VERSION) @PLATFORM@
74 +# 2 Oct 2002, Nickolay Samofatov - Major Cleanup
79 +#export DYLD_PRINT_ENV
81 +#DYLD_PRINT_LIBRARIES=1
82 +#export DYLD_PRINT_LIBRARIES
84 +MACOSX_DEPLOYMENT_TARGET=11.0
85 +export MACOSX_DEPLOYMENT_TARGET
87 +PROD_FLAGS=-DDARWIN -pipe -O2 -MMD -fPIC -fno-common
88 +DEV_FLAGS=-ggdb -DDARWIN -pipe -MMD -fPIC -fno-omit-frame-pointer -fno-common -Wall -fno-optimize-sibling-calls -Wno-non-virtual-dtor
89 +CXXFLAGS:=$(CXXFLAGS) -fvisibility-inlines-hidden -fvisibility=hidden
95 +#MATHLIB=$(ROOT)/extern/libtommath/.libs/libtommath.a
96 +SO_LINK_LIBS+=-liconv
98 +include $(ROOT)/gen/darwin.defaults
99 --- src/isql/InputDevices.cpp
100 +++ src/isql/InputDevices.cpp
103 #include "firebird.h"
104 #if defined(DARWIN) && !defined(IOS)
105 -#if defined(i386) || defined(__x86_64__)
106 +#if defined(i386) || defined(__x86_64__) || defined(__arm64__)
107 #include <architecture/i386/io.h>