]> git.ipfire.org Git - pakfire.git/commitdiff
macros: Build for more modern processors only
authorMichael Tremer <michael.tremer@ipfire.org>
Thu, 7 Apr 2022 18:32:43 +0000 (18:32 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Thu, 7 Apr 2022 18:32:43 +0000 (18:32 +0000)
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 <michael.tremer@ipfire.org>
macros/cflags.macro

index 525901e19f5e6afff5d117969654ba08bce5b8f2..6911441f657db2e62c5321166b6142382c1b79e6 100644 (file)
@@ -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