mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-01-31 00:23:58 +00:00
Linux ARM flags.
This commit is contained in:
parent
470ad39d0d
commit
f73a1d2d56
@ -124,13 +124,8 @@ DEFS+=-DZT_BUILD_PLATFORM=1 -DZT_BUILD_ARCHITECTURE=$(ZT_ARCHITECTURE) -DZT_SOFT
|
||||
|
||||
# Define some conservative CPU instruction set flags for arm32 since there's a ton of variation out there
|
||||
ifeq ($(ZT_ARCHITECTURE),3)
|
||||
ifeq ($(CC_MACH),armel)
|
||||
override CFLAGS+=-march=armv5te -mfpu=softfp -marm -mno-unaligned-access
|
||||
override CXXFLAGS+=-march=armv5te -mfpu=softfp -marm -mno-unaligned-access
|
||||
else
|
||||
override CFLAGS+=-march=armv6kz -mcpu=arm1176jzf-s -mfloat-abi=hard -mfpu=vfp -mno-unaligned-access
|
||||
override CXXFLAGS+=-march=armv6kz -mcpu=arm1176jzf-s -mfloat-abi=hard -mfpu=vfp -mno-unaligned-access
|
||||
endif
|
||||
override CFLAGS+=-march=armv5te -mfloat-abi=soft -marm -mno-unaligned-access
|
||||
override CXXFLAGS+=-march=armv5te -mfloat-abi=soft -marm -mno-unaligned-access
|
||||
override DEFS+=-DZT_NO_TYPE_PUNNING
|
||||
endif
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user