feat: support Linux/ARM cross-platform build and AVA2 feature updates
- Port server core and libraries to Linux and 32-bit ARM (armhf): * Replace FreeBSD kqueue with Linux epoll in libthecore fdwatch * Fix unaligned float and 64-bit int memory stores in utils.h str_to_number to avoid ARM VFP alignment fault (SIGBUS) * Fix getopt loop variable type in main.cpp (char -> int) to eliminate infinite loop caused by default unsigned char on ARM * Add -fsigned-char and multi-architecture flags to Makefiles (x86_64 -m32, i386, and ARM armhf) * Update libsql for modern MariaDB client library (removed reconnect field) and C++20 concept/syntax compatibility * Replace Win32 xdirent with standard POSIX dirent on Unix/Linux * Include xmd5 in libthecore on non-FreeBSD platforms - AVA2 unlock features and tools: * Material stacking up to 2000 count, refine material resolution and test suites * AVA2 ticket shop and point drop configuration updates
This commit is contained in:
@@ -1,21 +1,9 @@
|
||||
#CXX = distcc i386-obrien-freebsd5-g++
|
||||
CXX = clang++-devel
|
||||
|
||||
PLATFORM = $(shell file /bin/ls | cut -d' ' -f3 | cut -d'-' -f1)
|
||||
|
||||
GCC_VERSION = $(shell $(CC) --version 2>&1 | grep "(GCC)" | cut -d' ' -f3 | cut -d'.' -f1)
|
||||
BSD_VERSION = $(shell uname -v 2>&1 | cut -d' ' -f2 | cut -d'.' -f1)
|
||||
SVN_VERSION = $(shell svnversion -n -c . | cut -d':' -f2)
|
||||
CXX ?= clang++-devel
|
||||
|
||||
BIN = ./libserverkey.a
|
||||
|
||||
# ifeq ($(GCC_VERSION), 4)
|
||||
IFLAGS =
|
||||
CFLAGS = $(IFLAGS) -Wall -O2 -pipe -m32 -std=c++2b -D_THREAD_SAFE -fno-exceptions
|
||||
# else
|
||||
# IFLAGS =
|
||||
# CFLAGS = $(IFLAGS) -Wall -O2 -pipe -mcpu=i686 -D_THREAD_SAFE -fno-exceptions
|
||||
# endif
|
||||
CFLAGS ?= $(IFLAGS) -Wall -O2 -pipe -std=c++2b -D_THREAD_SAFE -fno-exceptions
|
||||
|
||||
LIBS =
|
||||
|
||||
@@ -37,7 +25,7 @@ dep:
|
||||
touch Depend
|
||||
$(CXX) $(CFLAGS) -MM *.cpp > Depend
|
||||
|
||||
$(OBJFILES):
|
||||
$(CXX) $(CFLAGS) -c $<
|
||||
%.o: %.cpp
|
||||
$(CXX) $(CFLAGS) -c $< -o $@
|
||||
|
||||
sinclude Depend
|
||||
|
||||
Reference in New Issue
Block a user