summaryrefslogtreecommitdiff
path: root/dev-libs/openssl/files/gentoo.config-1.0.4
diff options
context:
space:
mode:
authorAlex Xu (Hello71) <alex_y_xu@yahoo.ca>2023-03-28 21:03:36 -0400
committerAlex Xu (Hello71) <alex_y_xu@yahoo.ca>2023-03-28 21:03:36 -0400
commit8a7af49579922ef57c348f331581d5d565598c7c (patch)
tree68d3b9ddd87328626f83526caf0190165b45b97c /dev-libs/openssl/files/gentoo.config-1.0.4
parentf53b0c948ac1d3cf6801accc83063de15c92c866 (diff)
downloadgentoo-overlay-8a7af49579922ef57c348f331581d5d565598c7c.tar.xz
gentoo-overlay-8a7af49579922ef57c348f331581d5d565598c7c.zip
dev-liba/openssl: sync
Diffstat (limited to 'dev-libs/openssl/files/gentoo.config-1.0.4')
-rw-r--r--dev-libs/openssl/files/gentoo.config-1.0.46
1 files changed, 4 insertions, 2 deletions
diff --git a/dev-libs/openssl/files/gentoo.config-1.0.4 b/dev-libs/openssl/files/gentoo.config-1.0.4
index 573a97d..79f6331 100644
--- a/dev-libs/openssl/files/gentoo.config-1.0.4
+++ b/dev-libs/openssl/files/gentoo.config-1.0.4
@@ -77,7 +77,9 @@ fi
# Detect target arch
machine=""
+submachine=""
chost_machine=${CHOST%%-*}
+[[ ${CC} == *clang* ]] && submachine="-clang"
case ${system} in
linux)
case ${chost_machine}:${ABI} in
@@ -95,7 +97,7 @@ linux)
# hppa64*) machine=parisc64;;
hppa*) machine="generic32 -DB_ENDIAN";;
i[0-9]86*|\
- x86_64*:x86) machine=x86;;
+ x86_64*:x86) machine=x86${submachine};;
ia64*) machine=ia64;;
loongarch64*) machine="loongarch64 -DL_ENDIAN" system=linux64;;
m68*) machine="latomic -DB_ENDIAN";;
@@ -125,7 +127,7 @@ linux)
s390x*) machine=s390x system=linux64;;
s390*) machine="generic32 -DB_ENDIAN";;
x86_64*:x32) machine=x32;;
- x86_64*) machine=x86_64;;
+ x86_64*) machine=x86_64${submachine};;
esac
;;
BSD)