diff --git a/pCloudCC/lib/pclsync/Makefile b/pCloudCC/lib/pclsync/Makefile index ffb86385..c326fb66 100644 --- a/pCloudCC/lib/pclsync/Makefile +++ b/pCloudCC/lib/pclsync/Makefile @@ -4,16 +4,26 @@ RANLIB=ranlib #USESSL=openssl USESSL=mbed +# Architektur-Weiche +ARCH := $(shell uname -m) +ifeq ($(ARCH),armv7l) + MTUNE := cortex-a72 +else ifeq ($(ARCH),aarch64) + MTUNE := cortex-a72 +else + MTUNE := core2 +endif + #CFLAGS=-Wall -Wpointer-arith -O2 -g -mtune=core2 -CFLAGS=-Wall -Wpointer-arith -O2 -g -fno-stack-protector -fomit-frame-pointer -mtune=core2 -I../sqlite -DP_ELECTRON -fPIC +CFLAGS=-Wall -Wpointer-arith -O2 -g -fno-stack-protector -fomit-frame-pointer -I../sqlite -DP_ELECTRON -fPIC -mtune=$(MTUNE) -#CFLAGS=-Wall -Wpointer-arith -O2 -g -fsanitize=address -mtune=core2 -#CFLAGS=-Wall -Wpointer-arith -O2 -g -fsanitize=address -mtune=core2 -I../sqlite -#CFLAGS=-Wall -Wpointer-arith -Os -g -mtune=core2 -I../sqlite -pg -#CFLAGS=-Wall -Wpointer-arith -O2 -g -fno-stack-protector -fomit-frame-pointer -mtune=core2 -I../sqlite/ -fPIC -#CFLAGS=-Wall -Wpointer-arith -O2 -g -mtune=core2 -I../sqlite -pg -m32 -D_FILE_OFFSET_BITS=64 +#CFLAGS=-Wall -Wpointer-arith -O2 -g -fsanitize=address -mtune=$(MTUNE) +#CFLAGS=-Wall -Wpointer-arith -O2 -g -fsanitize=address -mtune=$(MTUNE) -I../sqlite +#CFLAGS=-Wall -Wpointer-arith -Os -g -mtune=$(MTUNE) -I../sqlite -pg +#CFLAGS=-Wall -Wpointer-arith -O2 -g -fno-stack-protector -fomit-frame-pointer -mtune=$(MTUNE) -I../sqlite/ -fPIC +#CFLAGS=-Wall -Wpointer-arith -O2 -g -mtune=$(MTUNE) -I../sqlite -pg -m32 -D_FILE_OFFSET_BITS=64 #CFLAGS=-O2 -g -pg -#CFLAGS=-Wall -Wpointer-arith -O2 -g -mtune=core2 -I../../psync32/zlib -I../../psync32/sqlite -m32 -D_FILE_OFFSET_BITS=64 +#CFLAGS=-Wall -Wpointer-arith -O2 -g -mtune=$(MTUNE) -I../../psync32/zlib -I../../psync32/sqlite -m32 -D_FILE_OFFSET_BITS=64 LIB_A=psynclib.a #LIB_A=libpsynclib.a