File tree 6 files changed +37
-0
lines changed
6 files changed +37
-0
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ aixgcc for AIX >= 5.x with gcc >= 4.8
2
2
freebsd7 for FreeBSD 7.x with gcc >= 4.8
3
3
linux for i386 Linux with gcc >= 4.8
4
4
linuxarm for ARM Linux with gcc >= 4.8
5
+ linuxarm64 for ARMv8-A (AArch64) Linux with gcc >= 4.8
5
6
linuxppcgcc for PPC Linux with gcc >= 4.8
6
7
linuxppc64gcc for PPC 64 Linux with gcc >= 4.8
7
8
linuxx8664gcc for x86-64 Linux with gcc >= 4.8
Original file line number Diff line number Diff line change @@ -240,6 +240,11 @@ linuxarm)
240
240
auxcflags=" ${cxxversionflag} -fsigned-char"
241
241
auxlibs=" -lm -ldl -rdynamic"
242
242
;;
243
+ linuxarm64)
244
+ # ARMv8-A (AArch64) Linux with gcc
245
+ auxcflags=" ${cxxversionflag} -fsigned-char"
246
+ auxlibs=" -lm -ldl -rdynamic"
247
+ ;;
243
248
freebsd)
244
249
# FreeBSD with libc5
245
250
auxcflags=" ${cxxversionflag} -Wno-deprecated-declarations"
Original file line number Diff line number Diff line change @@ -1360,6 +1360,7 @@ guess_architecture() {
1360
1360
linux:x86_64:* ) arch=linuxx8664gcc ;;
1361
1361
linux:x32:* ) arch=linuxx32gcc ;;
1362
1362
linux:arm* :* ) arch=linuxarm ;;
1363
+ linux:aarch64:* ) arch=linuxarm64 ;;
1363
1364
linux:hppa* :* ) arch=linux ;;
1364
1365
linux:sparc* :* ) arch=linux ;;
1365
1366
linux:parisc* :* ) arch=linuxhppa ;;
@@ -1906,6 +1907,10 @@ linuxx8664*)
1906
1907
logmsg " Will check 64bit libraries"
1907
1908
checklinux64=" yes"
1908
1909
checklib64=" yes" ;;
1910
+ linuxarm64)
1911
+ logmsg " Will check 64bit libraries"
1912
+ checklinux64=" yes"
1913
+ checklib64=" yes" ;;
1909
1914
linuxx32* )
1910
1915
logmsg " Will check x32 libraries in the future"
1911
1916
logmsg " For now expect proper libraries through configure flags" ;;
Original file line number Diff line number Diff line change 191
191
# endif
192
192
#endif
193
193
194
+ #if defined(linux) && defined(__aarch64__)
195
+ # define R__LINUX
196
+ # define R__UNIX
197
+ # define R__BYTESWAP
198
+ # define R__B64
199
+ # define NEED_SIGJMP
200
+ #endif
201
+
194
202
#if defined(__MACH__) && defined(__i386__) && !defined(__APPLE__)
195
203
# define R__HURD
196
204
# define f2cFortran /* cfortran.h does not know HURD - sigh */
Original file line number Diff line number Diff line change @@ -245,6 +245,15 @@ LDFLAGS = $(OPT)
245
245
SOFLAGS = -shared
246
246
endif
247
247
248
+ ifeq ($(ARCH ) ,linuxarm64)
249
+ # ARMv8-A (AArch64) Linux with gcc and glibc
250
+ CXX = g++
251
+ CXXFLAGS = $(OPT ) -Wall -fPIC
252
+ LD = g++
253
+ LDFLAGS = $(OPT )
254
+ SOFLAGS = -shared
255
+ endif
256
+
248
257
ifeq ($(ARCH ) ,freebsd4)
249
258
# FreeBSD with glibc
250
259
CXX = g++
Original file line number Diff line number Diff line change @@ -299,6 +299,15 @@ LDFLAGS = -O
299
299
SOFLAGS = -shared
300
300
endif
301
301
302
+ ifeq ($(ARCH ) ,linuxarm64)
303
+ # ARMv8-A (AArch64) Linux with egcs
304
+ CXX = g++
305
+ CXXFLAGS = -O -Wall -fPIC -Wshadow -Woverloaded-virtual
306
+ LD = g++
307
+ LDFLAGS = -O
308
+ SOFLAGS = -shared
309
+ endif
310
+
302
311
ifeq ($(ARCH ) ,mklinux)
303
312
# MkLinux with libc5
304
313
CXX = g++
You can’t perform that action at this time.
0 commit comments