From: Michael Tremer Date: Thu, 7 Apr 2022 18:32:43 +0000 (+0000) Subject: macros: Build for more modern processors only X-Git-Tag: 0.9.28~816 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=547777ac363bc14975cd7ab77fed3fb160b904f4;p=pakfire.git macros: Build for more modern processors only This patch enables pakfire to build for processors that have been released after 2011 only. It allows us to use modern processor features like SSE4.1, SSE4.2, POPCNT, SSE3, and SSSE3. Signed-off-by: Michael Tremer --- diff --git a/macros/cflags.macro b/macros/cflags.macro index 525901e19..6911441f6 100644 --- a/macros/cflags.macro +++ b/macros/cflags.macro @@ -5,7 +5,7 @@ GLOBAL_CFLAGS += -fPIC -fstack-protector-strong --param=ssp-buffer-size=4 GLOBAL_CFLAGS += -grecord-gcc-switches -fdebug-prefix-map=%{DIR_SRC}=%{debugsourcedir} CFLAGS_i686 = -m32 -march=i686 -mtune=atom -fasynchronous-unwind-tables -CFLAGS_x86_64 = -m64 -mtune=generic +CFLAGS_x86_64 = -m64 -march=x86-64-v2 -mtune=generic CFLAGS_aarch64 = -fstack-clash-protection CFLAGS_armv5tel = -march=armv5te -mfloat-abi=soft CFLAGS_armv7hl = -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard -mthumb