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 @@ -21344,6 +21344,7 @@
29 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35 --- src/common/common.h
36 +++ src/common/common.h
39 #define FB_CPU CpuPowerPc64
42 +// This means x86_64, but does it matter? There is no arch_arm64, arch_aarch64, arch_darwin_arm64,
43 +// or arch_darwin_aarch64 in the P_ARCH enum in src/remote/protocol.h.
45 +#define FB_CPU CpuArm64
48 #define QUADCONST(n) (n##LL)
49 #define QUADFORMAT "q"
54 #define FB_PLATFORM "UA"
56 +#if defined(__aarch64__)
57 +#define FB_PLATFORM "UB"
63 +++ builds/posix/prefix.darwin_arm64
65 +# The contents of this file are subject to the Interbase Public
66 +# License Version 1.0 (the "License"); you may not use this file
67 +# except in compliance with the License. You may obtain a copy
68 +# of the License at http://www.Inprise.com/IPL.html
70 +# Software distributed under the License is distributed on an
71 +# "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either express
72 +# or implied. See the License for the specific language governing
73 +# rights and limitations under the License.
75 +# The Original Code was created by Inprise Corporation
76 +# and its predecessors. Portions created by Inprise Corporation are
78 +# Copyright (C) 2000 Inprise Corporation
79 +# All Rights Reserved.
80 +# Contributor(s): ______________________________________.
81 +# Start of file prefix.darwin: $(VERSION) @PLATFORM@
82 +# 2 Oct 2002, Nickolay Samofatov - Major Cleanup
87 +#export DYLD_PRINT_ENV
89 +#DYLD_PRINT_LIBRARIES=1
90 +#export DYLD_PRINT_LIBRARIES
92 +MACOSX_DEPLOYMENT_TARGET=11.0
93 +export MACOSX_DEPLOYMENT_TARGET
95 +PROD_FLAGS=-DDARWIN -pipe -O2 -MMD -fPIC -fno-common
96 +DEV_FLAGS=-ggdb -DDARWIN -pipe -MMD -fPIC -fno-omit-frame-pointer -fno-common -Wall -fno-optimize-sibling-calls -Wno-non-virtual-dtor
97 +CXXFLAGS:=$(CXXFLAGS) -fvisibility-inlines-hidden -fvisibility=hidden
103 +#MATHLIB=$(ROOT)/extern/libtommath/.libs/libtommath.a
104 +SO_LINK_LIBS+=-liconv
106 +include $(ROOT)/gen/darwin.defaults
107 --- src/isql/InputDevices.cpp
108 +++ src/isql/InputDevices.cpp
111 #include "firebird.h"
112 #if defined(DARWIN) && !defined(IOS)
113 -#if defined(i386) || defined(__x86_64__)
114 +#if defined(i386) || defined(__x86_64__) || defined(__arm64__)
115 #include <architecture/i386/io.h>