aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJani Välimaa <wally@mageia.org>2024-04-02 20:20:49 +0300
committerJani Välimaa <wally@mageia.org>2024-04-02 20:20:49 +0300
commit93f6e7e2177639865961ddf14446dcbf9d573d9f (patch)
treed08338c6027fdad595a993d2151c94536e248752
parent35040edb3f14b6236a50f1888239eee65a54b457 (diff)
downloadrpm-setup-93f6e7e2177639865961ddf14446dcbf9d573d9f.tar
rpm-setup-93f6e7e2177639865961ddf14446dcbf9d573d9f.tar.gz
rpm-setup-93f6e7e2177639865961ddf14446dcbf9d573d9f.tar.bz2
rpm-setup-93f6e7e2177639865961ddf14446dcbf9d573d9f.tar.xz
rpm-setup-93f6e7e2177639865961ddf14446dcbf9d573d9f.zip
configure: add support for i686 target, and use it as a secondary target for x86_64
-rw-r--r--NEWS2
-rw-r--r--configure.ac8
2 files changed, 8 insertions, 2 deletions
diff --git a/NEWS b/NEWS
index 309669d..3d117fe 100644
--- a/NEWS
+++ b/NEWS
@@ -1,3 +1,5 @@
+- configure: add support for i686 target, and use it as a secondary target for x86_64
+
Version 2.76.1 - 31 March 2024, by Jani Välimaa
- rpmrc: don't use -fstack-clash-protection on aarch64 with the clang toolchain
diff --git a/configure.ac b/configure.ac
index 8fb222b..d178b46 100644
--- a/configure.ac
+++ b/configure.ac
@@ -42,14 +42,18 @@ ARMV7CANONTARGETCPU="armv5tl"
ARMV8CANONTARGETCPU="armv8l"
case "${target_cpu}" in
- *86|athlon|k6|pentium*)
+ i[3,4,5]86|athlon|k6|pentium3)
RPMALLARCH="i386 i486 i586 i686 k6 athlon pentium3 pentium4"
CANONTARGETCPU=i586
;;
+ i686|pentium4)
+ RPMALLARCH="i386 i486 i586 i686 k6 athlon pentium3 pentium4"
+ CANONTARGETCPU=i686
+ ;;
x86_64|amd64)
RPMALLARCH="i386 i486 i586 i686 k6 athlon pentium3 pentium4 amd64 x86_64"
CANONTARGETCPU=x86_64
- CANONTARGETCPU32=i586
+ CANONTARGETCPU32=i686
;;
ppc|powerpc)
RPMALLARCH="ppc"