sm-discuss AT lists.ibiblio.org
Subject: Public SourceMage Discussion List
List archive
[SM-Discuss] [PATCH] Add HOST_LIBC variable to specify the libc ABI
- From: Ismael Luceno <ismael AT iodev.co.uk>
- To: sm-discuss AT lists.ibiblio.org
- Subject: [SM-Discuss] [PATCH] Add HOST_LIBC variable to specify the libc ABI
- Date: Thu, 23 May 2019 15:27:42 +0200
Signed-off-by: Ismael Luceno <ismael AT iodev.co.uk>
---
32/ia32/amd/k6/k6 | 2 +-
32/ia32/amd/k6/k6-2 | 2 +-
32/ia32/amd/k6/k6-3 | 2 +-
32/ia32/amd/k7/athlon | 2 +-
32/ia32/amd/k7/athlon-4 | 2 +-
32/ia32/amd/k7/athlon-mp | 2 +-
32/ia32/amd/k7/athlon-tbird | 2 +-
32/ia32/amd/k7/athlon-xp | 2 +-
32/ia32/amd/k8/k8_32 | 2 +-
32/ia32/generic/x86_64/x86_32 | 2 +-
32/ia32/intel/em64t/core2_32 | 2 +-
32/ia32/intel/em64t/corei7_32 | 2 +-
32/ia32/intel/em64t/corei7_avx_32 | 2 +-
32/ia32/intel/em64t/nocona_32 | 2 +-
32/ia32/intel/x86/atom | 2 +-
32/ia32/intel/x86/i386 | 2 +-
32/ia32/intel/x86/i486 | 2 +-
32/ia32/intel/x86/i586 | 2 +-
32/ia32/intel/x86/i686 | 2 +-
32/ia32/intel/x86/pentium | 2 +-
32/ia32/intel/x86/pentium-m | 2 +-
32/ia32/intel/x86/pentium-mmx | 2 +-
32/ia32/intel/x86/pentium2 | 2 +-
32/ia32/intel/x86/pentium3 | 2 +-
32/ia32/intel/x86/pentium3m | 2 +-
32/ia32/intel/x86/pentium4 | 2 +-
32/ia32/intel/x86/pentium4m | 2 +-
32/ia32/intel/x86/pentiumpro | 2 +-
32/ia32/intel/x86/prescott | 2 +-
32/ia32/native-x86_64-32 | 6 +++---
32/ia32/via/c3/ezra | 2 +-
32/ia32/via/c3/ezra-t | 2 +-
32/ia32/via/c3/nehemiah | 2 +-
32/ia32/via/c3/samuel2 | 2 +-
32/ia32/via/c7/esther | 2 +-
32/ppc/generic/g3/g3 | 2 +-
32/ppc/generic/g3/g3+ | 2 +-
32/ppc/generic/g4/g4 | 2 +-
32/ppc/generic/g4/g4+ | 2 +-
32/ppc/generic/g5/g5 | 2 +-
32/sparc/sun/sun4/sun4c | 2 +-
32/sparc/sun/sun4/sun4d | 2 +-
32/sparc/sun/sun4/sun4m | 2 +-
32/sparc/sun/sun4/sun4u | 2 +-
32/superh/hitachi/sh4/sh4 | 2 +-
64/alpha/dec/ev67/alpha-ev67 | 2 +-
64/alpha/dec/generic/alpha-generic | 2 +-
64/ppc/generic/g5/g5-64 | 2 +-
64/sparc/sun/sun4/sun4m64 | 2 +-
64/sparc/sun/sun4/sun4u64 | 2 +-
64/x86_64/amd/k8/k8_64 | 2 +-
64/x86_64/generic/x86_64/x86_64 | 2 +-
64/x86_64/intel/em64t/atom_64 | 2 +-
64/x86_64/intel/em64t/core2_64 | 2 +-
64/x86_64/intel/em64t/corei7_64 | 2 +-
64/x86_64/intel/em64t/corei7_avx_64 | 2 +-
64/x86_64/intel/em64t/nocona_64 | 2 +-
64/x86_64/native-x86_64-64 | 6 +++---
58 files changed, 62 insertions(+), 62 deletions(-)
diff --git a/32/ia32/amd/k6/k6 b/32/ia32/amd/k6/k6
index d5c07619ff55..9e9da92a7b48 100755
--- a/32/ia32/amd/k6/k6
+++ b/32/ia32/amd/k6/k6
@@ -4,6 +4,6 @@ if use_gcc2; then
else
CFLAGS="-march=k6 -mmmx"
fi
- HOST="i586-pc-linux-gnu"
+ HOST="i586-pc-linux-${HOST_LIBC:-gnu}"
FAST="-O2"
SMALL="-Os"
diff --git a/32/ia32/amd/k6/k6-2 b/32/ia32/amd/k6/k6-2
index 849cdbe796d5..aaed0c89fa4b 100755
--- a/32/ia32/amd/k6/k6-2
+++ b/32/ia32/amd/k6/k6-2
@@ -4,6 +4,6 @@ if use_gcc2; then
else
CFLAGS="-march=k6-2 -mmmx -m3dnow"
fi
- HOST="i586-pc-linux-gnu"
+ HOST="i586-pc-linux-${HOST_LIBC:-gnu}"
FAST="-O2"
SMALL="-Os"
diff --git a/32/ia32/amd/k6/k6-3 b/32/ia32/amd/k6/k6-3
index 2778cf955320..d1a407937ed3 100755
--- a/32/ia32/amd/k6/k6-3
+++ b/32/ia32/amd/k6/k6-3
@@ -4,6 +4,6 @@ if use_gcc2; then
else
CFLAGS="-march=k6-3 -mmmx -m3dnow"
fi
- HOST="i586-pc-linux-gnu"
+ HOST="i586-pc-linux-${HOST_LIBC:-gnu}"
FAST="-O3"
SMALL="-Os"
diff --git a/32/ia32/amd/k7/athlon b/32/ia32/amd/k7/athlon
index 762dadad8cb8..241be37e02b3 100755
--- a/32/ia32/amd/k7/athlon
+++ b/32/ia32/amd/k7/athlon
@@ -4,6 +4,6 @@ if use_gcc2; then
else
CFLAGS="-march=athlon -mmmx -m3dnow"
fi
- HOST="i686-pc-linux-gnu"
+ HOST="i686-pc-linux-${HOST_LIBC:-gnu}"
FAST="-O3"
SMALL="-Os"
diff --git a/32/ia32/amd/k7/athlon-4 b/32/ia32/amd/k7/athlon-4
index 04851627be1e..a10b9ab58cb3 100755
--- a/32/ia32/amd/k7/athlon-4
+++ b/32/ia32/amd/k7/athlon-4
@@ -4,6 +4,6 @@ if use_gcc2; then
else
CFLAGS="-march=athlon-4"
fi
- HOST="i686-pc-linux-gnu"
+ HOST="i686-pc-linux-${HOST_LIBC:-gnu}"
FAST="-O3"
SMALL="-Os"
diff --git a/32/ia32/amd/k7/athlon-mp b/32/ia32/amd/k7/athlon-mp
index a9d5b15ea862..d4fe25dd5929 100755
--- a/32/ia32/amd/k7/athlon-mp
+++ b/32/ia32/amd/k7/athlon-mp
@@ -4,6 +4,6 @@ if use_gcc2; then
else
CFLAGS="-march=athlon-mp"
fi
- HOST="i686-pc-linux-gnu"
+ HOST="i686-pc-linux-${HOST_LIBC:-gnu}"
FAST="-O3"
SMALL="-Os"
diff --git a/32/ia32/amd/k7/athlon-tbird b/32/ia32/amd/k7/athlon-tbird
index d60781eb0398..2b657fdb9855 100755
--- a/32/ia32/amd/k7/athlon-tbird
+++ b/32/ia32/amd/k7/athlon-tbird
@@ -4,6 +4,6 @@ if use_gcc2; then
else
CFLAGS="-march=athlon-tbird -mmmx -m3dnow"
fi
- HOST="i686-pc-linux-gnu"
+ HOST="i686-pc-linux-${HOST_LIBC:-gnu}"
FAST="-O3"
SMALL="-Os"
diff --git a/32/ia32/amd/k7/athlon-xp b/32/ia32/amd/k7/athlon-xp
index 17a2bda33a15..43eea433501e 100755
--- a/32/ia32/amd/k7/athlon-xp
+++ b/32/ia32/amd/k7/athlon-xp
@@ -4,6 +4,6 @@ if use_gcc2; then
else
CFLAGS="-march=athlon-xp"
fi
- HOST="i686-pc-linux-gnu"
+ HOST="i686-pc-linux-${HOST_LIBC:-gnu}"
FAST="-O3"
SMALL="-Os"
diff --git a/32/ia32/amd/k8/k8_32 b/32/ia32/amd/k8/k8_32
index 0d527b66ec02..bfa2125c2c38 100755
--- a/32/ia32/amd/k8/k8_32
+++ b/32/ia32/amd/k8/k8_32
@@ -6,6 +6,6 @@ elif use_gcc2 ; then
else
CFLAGS="-march=k8 -m32"
fi
-HOST="i686-pc-linux-gnu"
+HOST="i686-pc-linux-${HOST_LIBC:-gnu}"
FAST="-O3"
SMALL="-Os"
diff --git a/32/ia32/generic/x86_64/x86_32 b/32/ia32/generic/x86_64/x86_32
index 6bc7896c66fc..6fbe7e309815 100755
--- a/32/ia32/generic/x86_64/x86_32
+++ b/32/ia32/generic/x86_64/x86_32
@@ -6,6 +6,6 @@ elif use_gcc2 ; then
else
CFLAGS="-march=x86-64 -m32"
fi
-HOST="i686-pc-linux-gnu"
+HOST="i686-pc-linux-${HOST_LIBC:-gnu}"
FAST="-O3"
SMALL="-Os"
diff --git a/32/ia32/intel/em64t/core2_32 b/32/ia32/intel/em64t/core2_32
index a8f630669afd..38ef2b49fa83 100755
--- a/32/ia32/intel/em64t/core2_32
+++ b/32/ia32/intel/em64t/core2_32
@@ -8,6 +8,6 @@ else
CFLAGS="-march=core2 -m32"
fi
-HOST="i686-pc-linux-gnu"
+HOST="i686-pc-linux-${HOST_LIBC:-gnu}"
FAST="-O3"
SMALL="-Os"
diff --git a/32/ia32/intel/em64t/corei7_32 b/32/ia32/intel/em64t/corei7_32
index 6eb478b66104..153d2acb1385 100755
--- a/32/ia32/intel/em64t/corei7_32
+++ b/32/ia32/intel/em64t/corei7_32
@@ -8,7 +8,7 @@ else
CFLAGS="-march=corei7 -m32"
fi
-HOST="x86_64-pc-linux-gnu"
+HOST="x86_64-pc-linux-${HOST_LIBC:-gnu}"
FAST="-O3"
SMALL="-Os"
diff --git a/32/ia32/intel/em64t/corei7_avx_32
b/32/ia32/intel/em64t/corei7_avx_32
index 00e37c9c48c4..35ea2bd614b0 100755
--- a/32/ia32/intel/em64t/corei7_avx_32
+++ b/32/ia32/intel/em64t/corei7_avx_32
@@ -8,7 +8,7 @@ else
CFLAGS="-march=corei7-avx -m32"
fi
-HOST="x86_64-pc-linux-gnu"
+HOST="x86_64-pc-linux-${HOST_LIBC:-gnu}"
FAST="-O3"
SMALL="-Os"
diff --git a/32/ia32/intel/em64t/nocona_32 b/32/ia32/intel/em64t/nocona_32
index 8bf03d9a1a51..8d52c0df32ea 100755
--- a/32/ia32/intel/em64t/nocona_32
+++ b/32/ia32/intel/em64t/nocona_32
@@ -6,6 +6,6 @@ elif use_gcc2 ; then
else
CFLAGS="-march=nocona -m32"
fi
-HOST="i686-pc-linux-gnu"
+HOST="i686-pc-linux-${HOST_LIBC:-gnu}"
FAST="-O3"
SMALL="-Os"
diff --git a/32/ia32/intel/x86/atom b/32/ia32/intel/x86/atom
index 054a669f7b6e..aff9481cd580 100755
--- a/32/ia32/intel/x86/atom
+++ b/32/ia32/intel/x86/atom
@@ -4,6 +4,6 @@ if use_gcc2; then
else
CFLAGS="-march=atom -m32"
fi
-HOST="i686-pc-linux-gnu"
+HOST="i686-pc-linux-${HOST_LIBC:-gnu}"
FAST="-O3"
SMALL="-Os"
diff --git a/32/ia32/intel/x86/i386 b/32/ia32/intel/x86/i386
index 295285dfe48e..75cc558ad4c7 100755
--- a/32/ia32/intel/x86/i386
+++ b/32/ia32/intel/x86/i386
@@ -1,5 +1,5 @@
CPUNAME="Intel 80386 and clones"
CFLAGS="-march=i386"
- HOST="i386-pc-linux-gnu"
+ HOST="i386-pc-linux-${HOST_LIBC:-gnu}"
FAST="-O2"
SMALL="-Os"
diff --git a/32/ia32/intel/x86/i486 b/32/ia32/intel/x86/i486
index 1456fe4356b2..b839b57eb90b 100755
--- a/32/ia32/intel/x86/i486
+++ b/32/ia32/intel/x86/i486
@@ -1,5 +1,5 @@
CPUNAME="Intel 80486 and clones"
CFLAGS="-march=i486"
- HOST="i486-pc-linux-gnu"
+ HOST="i486-pc-linux-${HOST_LIBC:-gnu}"
FAST="-O2"
SMALL="-Os"
diff --git a/32/ia32/intel/x86/i586 b/32/ia32/intel/x86/i586
index f5cb265636ff..5ef366438fd6 100755
--- a/32/ia32/intel/x86/i586
+++ b/32/ia32/intel/x86/i586
@@ -1,5 +1,5 @@
CPUNAME="Intel Pentium and clones"
CFLAGS="-march=i586"
- HOST="i586-pc-linux-gnu"
+ HOST="i586-pc-linux-${HOST_LIBC:-gnu}"
FAST="-O2"
SMALL="-Os"
diff --git a/32/ia32/intel/x86/i686 b/32/ia32/intel/x86/i686
index 2204eefe0430..9a3920f1ce5a 100755
--- a/32/ia32/intel/x86/i686
+++ b/32/ia32/intel/x86/i686
@@ -1,5 +1,5 @@
CPUNAME="Intel Pentium Pro and clones"
CFLAGS="-march=i686"
- HOST="i686-pc-linux-gnu"
+ HOST="i686-pc-linux-${HOST_LIBC:-gnu}"
FAST="-O3"
SMALL="-Os"
diff --git a/32/ia32/intel/x86/pentium b/32/ia32/intel/x86/pentium
index d9152fb8ebf9..e42fb56ce45f 100755
--- a/32/ia32/intel/x86/pentium
+++ b/32/ia32/intel/x86/pentium
@@ -4,6 +4,6 @@ if use_gcc2; then
else
CFLAGS="-march=pentium"
fi
- HOST="i586-pc-linux-gnu"
+ HOST="i586-pc-linux-${HOST_LIBC:-gnu}"
FAST="-O2"
SMALL="-Os"
diff --git a/32/ia32/intel/x86/pentium-m b/32/ia32/intel/x86/pentium-m
index 477f62022179..447e455802fa 100755
--- a/32/ia32/intel/x86/pentium-m
+++ b/32/ia32/intel/x86/pentium-m
@@ -6,6 +6,6 @@ elif use_gcc 3.3; then
else
CFLAGS="-march=pentium-m"
fi
-HOST="i686-pc-linux-gnu"
+HOST="i686-pc-linux-${HOST_LIBC:-gnu}"
FAST="-O3"
SMALL="-Os"
diff --git a/32/ia32/intel/x86/pentium-mmx b/32/ia32/intel/x86/pentium-mmx
index 2a9429f3f14e..c37adc01d394 100755
--- a/32/ia32/intel/x86/pentium-mmx
+++ b/32/ia32/intel/x86/pentium-mmx
@@ -4,6 +4,6 @@ if use_gcc2; then
else
CFLAGS="-march=pentium-mmx"
fi
- HOST="i586-pc-linux-gnu"
+ HOST="i586-pc-linux-${HOST_LIBC:-gnu}"
FAST="-O2"
SMALL="-Os"
diff --git a/32/ia32/intel/x86/pentium2 b/32/ia32/intel/x86/pentium2
index b81192179e1d..164fdf7d2396 100755
--- a/32/ia32/intel/x86/pentium2
+++ b/32/ia32/intel/x86/pentium2
@@ -4,6 +4,6 @@ if use_gcc2; then
else
CFLAGS="-march=pentium2"
fi
- HOST="i686-pc-linux-gnu"
+ HOST="i686-pc-linux-${HOST_LIBC:-gnu}"
FAST="-O3"
SMALL="-Os"
diff --git a/32/ia32/intel/x86/pentium3 b/32/ia32/intel/x86/pentium3
index 8338ac985215..1ba14ad7549e 100755
--- a/32/ia32/intel/x86/pentium3
+++ b/32/ia32/intel/x86/pentium3
@@ -4,6 +4,6 @@ if use_gcc2; then
else
CFLAGS="-march=pentium3"
fi
- HOST="i686-pc-linux-gnu"
+ HOST="i686-pc-linux-${HOST_LIBC:-gnu}"
FAST="-O3"
SMALL="-Os"
diff --git a/32/ia32/intel/x86/pentium3m b/32/ia32/intel/x86/pentium3m
index a4d63d0d0cfb..f0ca474b8c7b 100755
--- a/32/ia32/intel/x86/pentium3m
+++ b/32/ia32/intel/x86/pentium3m
@@ -6,6 +6,6 @@ elif use_gcc 3.3; then
else
CFLAGS="-march=pentium3m"
fi
- HOST="i686-pc-linux-gnu"
+ HOST="i686-pc-linux-${HOST_LIBC:-gnu}"
FAST="-O3"
SMALL="-Os"
diff --git a/32/ia32/intel/x86/pentium4 b/32/ia32/intel/x86/pentium4
index 7386081d7c10..b3337f925958 100755
--- a/32/ia32/intel/x86/pentium4
+++ b/32/ia32/intel/x86/pentium4
@@ -4,6 +4,6 @@ if use_gcc2; then
else
CFLAGS="-march=pentium4"
fi
- HOST="i686-pc-linux-gnu"
+ HOST="i686-pc-linux-${HOST_LIBC:-gnu}"
FAST="-O3"
SMALL="-Os"
diff --git a/32/ia32/intel/x86/pentium4m b/32/ia32/intel/x86/pentium4m
index 7d635d9de4cb..d2adc14e7446 100755
--- a/32/ia32/intel/x86/pentium4m
+++ b/32/ia32/intel/x86/pentium4m
@@ -6,6 +6,6 @@ elif use_gcc 3.3; then
else
CFLAGS="-march=pentium4m"
fi
- HOST="i686-pc-linux-gnu"
+ HOST="i686-pc-linux-${HOST_LIBC:-gnu}"
FAST="-O3"
SMALL="-Os"
diff --git a/32/ia32/intel/x86/pentiumpro b/32/ia32/intel/x86/pentiumpro
index 90fba8034c2e..7ded32c759d2 100755
--- a/32/ia32/intel/x86/pentiumpro
+++ b/32/ia32/intel/x86/pentiumpro
@@ -4,6 +4,6 @@ if use_gcc2; then
else
CFLAGS="-march=pentiumpro"
fi
- HOST="i686-pc-linux-gnu"
+ HOST="i686-pc-linux-${HOST_LIBC:-gnu}"
FAST="-O3"
SMALL="-Os"
diff --git a/32/ia32/intel/x86/prescott b/32/ia32/intel/x86/prescott
index e5b4ed10b7fd..192f6a92e2b2 100755
--- a/32/ia32/intel/x86/prescott
+++ b/32/ia32/intel/x86/prescott
@@ -4,6 +4,6 @@ if use_gcc2; then
else
CFLAGS="-march=prescott"
fi
-HOST="i686-pc-linux-gnu"
+HOST="i686-pc-linux-${HOST_LIBC:-gnu}"
FAST="-O3"
SMALL="-Os"
diff --git a/32/ia32/native-x86_64-32 b/32/ia32/native-x86_64-32
index 3964c2c01d94..0cb4dd874223 100755
--- a/32/ia32/native-x86_64-32
+++ b/32/ia32/native-x86_64-32
@@ -2,13 +2,13 @@ CPUNAME="Auto-detected x86/x86_64 architecture 32-bit mode"
if use_gcc 3.3. || use_gcc 3.4. || use_gcc 4.0. || use_gcc 4.1. ; then
CFLAGS="-march=i486 -m32"
- HOST="i486-pc-linux-gnu"
+ HOST="i486-pc-linux-${HOST_LIBC:-gnu}"
elif use_gcc2 ; then
CFLAGS="-march=i486"
- HOST="i486-pc-linux-gnu"
+ HOST="i486-pc-linux-${HOST_LIBC:-gnu}"
else
CFLAGS="-march=native -mtune=native -m32"
- HOST="i686-pc-linux-gnu"
+ HOST="i686-pc-linux-${HOST_LIBC:-gnu}"
fi
FAST="-O3"
diff --git a/32/ia32/via/c3/ezra b/32/ia32/via/c3/ezra
index b3f752b5cf87..f7a82f581cca 100755
--- a/32/ia32/via/c3/ezra
+++ b/32/ia32/via/c3/ezra
@@ -6,7 +6,7 @@ else
CFLAGS="-march=i586 -m3dnow -mmx" # gcc at least 4.0.2 has c3 as 486, ezra
is 686 minus x86_cmove, so 586 is supported
# see
http://www.courville.org/phpwiki/Gcc
fi
- HOST="i586-pc-linux-gnu"
+ HOST="i586-pc-linux-${HOST_LIBC:-gnu}"
FAST="-O3" # Note: should this be -Os
# see:
http://www.epiawiki.org/wiki/tiki-index.php?page=EpiaInstallingGentoo
SMALL="-Os"
diff --git a/32/ia32/via/c3/ezra-t b/32/ia32/via/c3/ezra-t
index 07fbae292620..b437096f9b06 100755
--- a/32/ia32/via/c3/ezra-t
+++ b/32/ia32/via/c3/ezra-t
@@ -6,7 +6,7 @@ else
CFLAGS="-march=c3" # gcc at least 4.0.2 has c3 as 486, ezra-t is 686 minus
x86_cmove, so 586 is supported
# see
http://www.courville.org/phpwiki/Gcc
fi
- HOST="i586-pc-linux-gnu"
+ HOST="i586-pc-linux-${HOST_LIBC:-gnu}"
FAST="-O3" # Note: should this be -Os
# see:
http://www.epiawiki.org/wiki/tiki-index.php?page=EpiaInstallingGentoo
SMALL="-Os"
diff --git a/32/ia32/via/c3/nehemiah b/32/ia32/via/c3/nehemiah
index c732d35b5843..7d41706a6f05 100755
--- a/32/ia32/via/c3/nehemiah
+++ b/32/ia32/via/c3/nehemiah
@@ -6,7 +6,7 @@ else
CFLAGS="-march=c3-2" # note no 3dnow support, sse instead
# see
http://www.courville.org/phpwiki/Gcc
fi
- HOST="i686-pc-linux-gnu"
+ HOST="i686-pc-linux-${HOST_LIBC:-gnu}"
FAST="-O3" # Note: should this be -Os
# see:
http://www.epiawiki.org/wiki/tiki-index.php?page=EpiaInstallingGentoo
SMALL="-Os"
diff --git a/32/ia32/via/c3/samuel2 b/32/ia32/via/c3/samuel2
index 4ebc4cc8476f..d54ec650b5af 100755
--- a/32/ia32/via/c3/samuel2
+++ b/32/ia32/via/c3/samuel2
@@ -6,7 +6,7 @@ else
CFLAGS="-march=c3" # gcc at least 4.0.2 has c3 as 486, samuel2 is 686 minus
x86_cmove, so 586 is supported
# see
http://www.courville.org/phpwiki/Gcc
fi
- HOST="i586-pc-linux-gnu"
+ HOST="i586-pc-linux-${HOST_LIBC:-gnu}"
FAST="-O3" # Note: should this be -Os
# see:
http://www.epiawiki.org/wiki/tiki-index.php?page=EpiaInstallingGentoo
SMALL="-Os"
diff --git a/32/ia32/via/c7/esther b/32/ia32/via/c7/esther
index b677ccd32124..c127aa99f3e9 100755
--- a/32/ia32/via/c7/esther
+++ b/32/ia32/via/c7/esther
@@ -4,6 +4,6 @@ if use_gcc2; then
else
CFLAGS="-march=prescott -pipe -fomit-frame-pointer"
fi
- HOST="i686-pc-linux-gnu"
+ HOST="i686-pc-linux-${HOST_LIBC:-gnu}"
FAST="-O2"
SMALL="-Os"
diff --git a/32/ppc/generic/g3/g3 b/32/ppc/generic/g3/g3
index 504f2eae420d..860d979c52b2 100755
--- a/32/ppc/generic/g3/g3
+++ b/32/ppc/generic/g3/g3
@@ -1,5 +1,5 @@
CPUNAME="IBM/Motorola Powerpc G3 (740)"
CFLAGS="-mcpu=740"
- HOST="powerpc-unknown-linux-gnu"
+ HOST="powerpc-unknown-linux-${HOST_LIBC:-gnu}"
FAST="-O3"
SMALL="-Os"
diff --git a/32/ppc/generic/g3/g3+ b/32/ppc/generic/g3/g3+
index f6cf4909b319..e4af6714d3ad 100755
--- a/32/ppc/generic/g3/g3+
+++ b/32/ppc/generic/g3/g3+
@@ -1,5 +1,5 @@
CPUNAME="IBM/Motorola Powerpc G3 (750)"
CFLAGS="-mcpu=750"
- HOST="powerpc-unknown-linux-gnu"
+ HOST="powerpc-unknown-linux-${HOST_LIBC:-gnu}"
FAST="-O3"
SMALL="-Os"
diff --git a/32/ppc/generic/g4/g4 b/32/ppc/generic/g4/g4
index 972527634f14..0fa362e617e3 100755
--- a/32/ppc/generic/g4/g4
+++ b/32/ppc/generic/g4/g4
@@ -4,6 +4,6 @@ if use_gcc2; then
else
CFLAGS="-mcpu=7400 -maltivec -mabi=altivec"
fi
- HOST="powerpc-unknown-linux-gnu"
+ HOST="powerpc-unknown-linux-${HOST_LIBC:-gnu}"
FAST="-O3"
SMALL="-Os"
diff --git a/32/ppc/generic/g4/g4+ b/32/ppc/generic/g4/g4+
index 80e0fde5309a..694db309f5af 100755
--- a/32/ppc/generic/g4/g4+
+++ b/32/ppc/generic/g4/g4+
@@ -4,6 +4,6 @@ if use_gcc2; then
else
CFLAGS="-mcpu=7450 -maltivec -mabi=altivec"
fi
- HOST="powerpc-unknown-linux-gnu"
+ HOST="powerpc-unknown-linux-${HOST_LIBC:-gnu}"
FAST="-O3"
SMALL="-Os"
diff --git a/32/ppc/generic/g5/g5 b/32/ppc/generic/g5/g5
index 34afccdd21fd..4930b77ac32a 100755
--- a/32/ppc/generic/g5/g5
+++ b/32/ppc/generic/g5/g5
@@ -1,5 +1,5 @@
CPUNAME="IBM/Motorola Powerpc G5 (860)"
CFLAGS="-mcpu=860 -maltivec -mabi=altivec"
- HOST="powerpc-unknown-linux-gnu"
+ HOST="powerpc-unknown-linux-${HOST_LIBC:-gnu}"
FAST="-O3"
SMALL="-Os"
diff --git a/32/sparc/sun/sun4/sun4c b/32/sparc/sun/sun4/sun4c
index 9f4a6d3c8f7a..b3a1765ad70c 100755
--- a/32/sparc/sun/sun4/sun4c
+++ b/32/sparc/sun/sun4/sun4c
@@ -1,5 +1,5 @@
CPUNAME="Sun SPARCstation server 1/1+/2, IPC, ELC, IPX, SLC)"
CFLAGS="-mcpu=v7"
- HOST="sparc-unknown-linux-gnu"
+ HOST="sparc-unknown-linux-${HOST_LIBC:-gnu}"
FAST="-O3"
SMALL="-Os"
diff --git a/32/sparc/sun/sun4/sun4d b/32/sparc/sun/sun4/sun4d
index 73ba5caeeb6b..22e0345143cf 100755
--- a/32/sparc/sun/sun4/sun4d
+++ b/32/sparc/sun/sun4/sun4d
@@ -1,5 +1,5 @@
CPUNAME="Sun SPARCstation server 1000/etc."
CFLAGS="-mcpu=v8"
- HOST="sparc-unknown-linux-gnu"
+ HOST="sparc-unknown-linux-${HOST_LIBC:-gnu}"
FAST="-O3"
SMALL="-Os"
diff --git a/32/sparc/sun/sun4/sun4m b/32/sparc/sun/sun4/sun4m
index f6c44a17da6b..9b036ab8cc14 100755
--- a/32/sparc/sun/sun4/sun4m
+++ b/32/sparc/sun/sun4/sun4m
@@ -1,5 +1,5 @@
CPUNAME="Sun SPARCstation server 5/10/20, 4/600, Classic, LX, Voyager,
JavaStation 1)"
CFLAGS="-mcpu=v8 -m32"
- HOST="sparc-unknown-linux-gnu"
+ HOST="sparc-unknown-linux-${HOST_LIBC:-gnu}"
FAST="-O3"
SMALL="-Os"
diff --git a/32/sparc/sun/sun4/sun4u b/32/sparc/sun/sun4/sun4u
index 738903d66038..e474617412ff 100755
--- a/32/sparc/sun/sun4/sun4u
+++ b/32/sparc/sun/sun4/sun4u
@@ -1,5 +1,5 @@
CPUNAME="Sun UltraSPARC 5/10/etc."
CFLAGS="-mcpu=ultrasparc -m32"
- HOST="sparc-unknown-linux-gnu"
+ HOST="sparc-unknown-linux-${HOST_LIBC:-gnu}"
FAST="-O3"
SMALL="-Os"
diff --git a/32/superh/hitachi/sh4/sh4 b/32/superh/hitachi/sh4/sh4
index 6392bd6c43f6..172e68c6d90c 100755
--- a/32/superh/hitachi/sh4/sh4
+++ b/32/superh/hitachi/sh4/sh4
@@ -1,5 +1,5 @@
CPUNAME="Hitachi SuperH (SH4) (Dreamcast)"
CFLAGS="-m4 -ml"
- HOST="sh4-linux-gnu"
+ HOST="sh4-linux-${HOST_LIBC:-gnu}"
FAST="-O3"
SMALL="-Os"
diff --git a/64/alpha/dec/ev67/alpha-ev67 b/64/alpha/dec/ev67/alpha-ev67
index 0d4a1b384a7b..cbae561218c4 100755
--- a/64/alpha/dec/ev67/alpha-ev67
+++ b/64/alpha/dec/ev67/alpha-ev67
@@ -1,5 +1,5 @@
CPUNAME="DEC/Compaq Alpha EV67 (21264a CPU)"
CFLAGS="-mieee -mcpu=ev67 -fPIC -DPIC"
-HOST="alphaev67-unknown-linux-gnu"
+HOST="alphaev67-unknown-linux-${HOST_LIBC:-gnu}"
FAST="-O2"
SMALL="-Os"
diff --git a/64/alpha/dec/generic/alpha-generic
b/64/alpha/dec/generic/alpha-generic
index 8b4e9c177635..1ad90169c392 100755
--- a/64/alpha/dec/generic/alpha-generic
+++ b/64/alpha/dec/generic/alpha-generic
@@ -1,5 +1,5 @@
CPUNAME="DEC/Compaq/HP Alpha (generic)"
CFLAGS="-mieee -fPIC -DPIC"
-HOST="alpha-unknown-linux-gnu"
+HOST="alpha-unknown-linux-${HOST_LIBC:-gnu}"
FAST="-O2"
SMALL="-Os"
diff --git a/64/ppc/generic/g5/g5-64 b/64/ppc/generic/g5/g5-64
index ed2de1d4a32b..591bac67d6df 100755
--- a/64/ppc/generic/g5/g5-64
+++ b/64/ppc/generic/g5/g5-64
@@ -1,5 +1,5 @@
CPUNAME="IBM/Motorola Powerpc G5 (860) 64Bit Mode"
CFLAGS="-mcpu=860 -maltivec -mabi=altivec -mpowerpc64"
- HOST="powerpc64-unknown-linux-gnu"
+ HOST="powerpc64-unknown-linux-${HOST_LIBC:-gnu}"
FAST="-O3"
SMALL="-Os"
diff --git a/64/sparc/sun/sun4/sun4m64 b/64/sparc/sun/sun4/sun4m64
index 15f898dec39c..1e409874661f 100755
--- a/64/sparc/sun/sun4/sun4m64
+++ b/64/sparc/sun/sun4/sun4m64
@@ -1,5 +1,5 @@
CPUNAME="Sun SPARCstation server 5/10/20, 4/600, Classic, LX, Voyager,
JavaStation 1) 64-bit binaries (slow, big, no gain)"
CFLAGS="-mcpu=v8"
- HOST="sparc64-unknown-linux-gnu"
+ HOST="sparc64-unknown-linux-${HOST_LIBC:-gnu}"
FAST="-O3"
SMALL="-Os"
diff --git a/64/sparc/sun/sun4/sun4u64 b/64/sparc/sun/sun4/sun4u64
index 812277966398..0b572e7eb6c2 100755
--- a/64/sparc/sun/sun4/sun4u64
+++ b/64/sparc/sun/sun4/sun4u64
@@ -1,5 +1,5 @@
CPUNAME="Sun UltraSPARC 5/10/etc. 64-bit binaries (slow, big, no gain)"
CFLAGS="-mcpu=ultrasparc"
- HOST="sparc64-unknown-linux-gnu"
+ HOST="sparc64-unknown-linux-${HOST_LIBC:-gnu}"
FAST="-O3"
SMALL="-Os"
diff --git a/64/x86_64/amd/k8/k8_64 b/64/x86_64/amd/k8/k8_64
index 1f1e0f6b3525..d465da97d5d2 100755
--- a/64/x86_64/amd/k8/k8_64
+++ b/64/x86_64/amd/k8/k8_64
@@ -8,6 +8,6 @@ else
CFLAGS="-march=k8 -fPIC -DPIC"
fi
-HOST="x86_64-pc-linux-gnu"
+HOST="x86_64-pc-linux-${HOST_LIBC:-gnu}"
FAST="-O3"
SMALL="-Os"
diff --git a/64/x86_64/generic/x86_64/x86_64 b/64/x86_64/generic/x86_64/x86_64
index ce17727deb04..cb78289e7b18 100755
--- a/64/x86_64/generic/x86_64/x86_64
+++ b/64/x86_64/generic/x86_64/x86_64
@@ -8,7 +8,7 @@ else
CFLAGS="-march=x86-64 -fPIC -DPIC"
fi
-HOST="x86_64-pc-linux-gnu"
+HOST="x86_64-pc-linux-${HOST_LIBC:-gnu}"
FAST="-O3"
SMALL="-Os"
diff --git a/64/x86_64/intel/em64t/atom_64 b/64/x86_64/intel/em64t/atom_64
index 247fc4a4b2d9..f04a071c457a 100755
--- a/64/x86_64/intel/em64t/atom_64
+++ b/64/x86_64/intel/em64t/atom_64
@@ -6,7 +6,7 @@ else
CFLAGS="-march=atom -m64 -fPIC -DPIC"
fi
-HOST="x86_64-pc-linux-gnu"
+HOST="x86_64-pc-linux-${HOST_LIBC:-gnu}"
FAST="-O3"
SMALL="-Os"
diff --git a/64/x86_64/intel/em64t/core2_64 b/64/x86_64/intel/em64t/core2_64
index 53d2f9f434e3..b461468b78a3 100755
--- a/64/x86_64/intel/em64t/core2_64
+++ b/64/x86_64/intel/em64t/core2_64
@@ -8,7 +8,7 @@ else
CFLAGS="-march=core2 -fPIC -DPIC"
fi
-HOST="x86_64-pc-linux-gnu"
+HOST="x86_64-pc-linux-${HOST_LIBC:-gnu}"
FAST="-O3"
SMALL="-Os"
diff --git a/64/x86_64/intel/em64t/corei7_64 b/64/x86_64/intel/em64t/corei7_64
index dbf14b453948..c1e54885b4bc 100755
--- a/64/x86_64/intel/em64t/corei7_64
+++ b/64/x86_64/intel/em64t/corei7_64
@@ -8,7 +8,7 @@ else
CFLAGS="-march=corei7 -fPIC -DPIC"
fi
-HOST="x86_64-pc-linux-gnu"
+HOST="x86_64-pc-linux-${HOST_LIBC:-gnu}"
FAST="-O3"
SMALL="-Os"
diff --git a/64/x86_64/intel/em64t/corei7_avx_64
b/64/x86_64/intel/em64t/corei7_avx_64
index b5926da423b9..d766f66515c1 100755
--- a/64/x86_64/intel/em64t/corei7_avx_64
+++ b/64/x86_64/intel/em64t/corei7_avx_64
@@ -8,7 +8,7 @@ else
CFLAGS="-march=corei7-avx -fPIC -DPIC"
fi
-HOST="x86_64-pc-linux-gnu"
+HOST="x86_64-pc-linux-${HOST_LIBC:-gnu}"
FAST="-O3"
SMALL="-Os"
diff --git a/64/x86_64/intel/em64t/nocona_64 b/64/x86_64/intel/em64t/nocona_64
index e571f719abd4..93b25bc4153d 100755
--- a/64/x86_64/intel/em64t/nocona_64
+++ b/64/x86_64/intel/em64t/nocona_64
@@ -8,7 +8,7 @@ else
CFLAGS="-march=nocona -fPIC -DPIC"
fi
-HOST="x86_64-pc-linux-gnu"
+HOST="x86_64-pc-linux-${HOST_LIBC:-gnu}"
FAST="-O3"
SMALL="-Os"
diff --git a/64/x86_64/native-x86_64-64 b/64/x86_64/native-x86_64-64
index ed72691c1a78..92d8b32cc8e6 100755
--- a/64/x86_64/native-x86_64-64
+++ b/64/x86_64/native-x86_64-64
@@ -2,13 +2,13 @@ CPUNAME="Auto-detected x86_64 architecture 64-bit mode"
if use_gcc 3.3. || use_gcc 3.4. || use_gcc 4.0. || use_gcc 4.1. ; then
CFLAGS="-march=x86-64 -fPIC -DPIC -m64"
- HOST="x86_64-pc-linux-gnu"
+ HOST="x86_64-pc-linux-${HOST_LIBC:-gnu}"
elif use_gcc2 ; then
CFLAGS="-march=i486"
- HOST="i486-pc-linux-gnu"
+ HOST="i486-pc-linux-${HOST_LIBC:-gnu}"
else
CFLAGS="-march=native -mtune=native -m64"
- HOST="x86_64-pc-linux-gnu"
+ HOST="x86_64-pc-linux-${HOST_LIBC:-gnu}"
fi
FAST="-O3"
--
2.21.0
- [SM-Discuss] [PATCH] Add HOST_LIBC variable to specify the libc ABI, Ismael Luceno, 05/23/2019
Archive powered by MHonArc 2.6.24.