Linux ARM flags.

This commit is contained in:
Adam Ierymenko 2017-04-04 09:41:34 -07:00
parent 470ad39d0d
commit f73a1d2d56

View File

@ -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