Skip to content

Commit

Permalink
Merge pull request #67 from stunnel/feature/unified-arch-name
Browse files Browse the repository at this point in the history
unified arch name
  • Loading branch information
travislee89 authored Feb 14, 2024
2 parents 20f8455 + 55a1242 commit e38de71
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 25 deletions.
11 changes: 1 addition & 10 deletions curl-static-cross.sh
Original file line number Diff line number Diff line change
Expand Up @@ -201,15 +201,6 @@ arch_variants() {
echo "Setting up the ARCH and OpenSSL arch, Arch: ${ARCH}"
local qemu_arch

[ -z "${ARCH}" ] && ARCH="${ARCH_HOST}"
case "${ARCH}" in
x86_64) arch="amd64" ;;
aarch64) arch="arm64" ;;
armv7l|armv7) arch="armv7" ;;
i686) arch="i686" ;;
*) arch="${ARCH}" ;;
esac

EC_NISTP_64_GCC_128=""
OPENSSL_ARCH=""

Expand Down Expand Up @@ -770,7 +761,7 @@ install_curl() {
mkdir -p "${RELEASE_DIR}/release/bin/"

ls -l src/curl
cp -pf src/curl "${RELEASE_DIR}/release/bin/curl-linux-${arch}${libc_flag}"
cp -pf src/curl "${RELEASE_DIR}/release/bin/curl-linux-${ARCH}${libc_flag}"

if [ ! -f "${RELEASE_DIR}/release/version.txt" ]; then
echo "${CURL_VERSION}" > "${RELEASE_DIR}/release/version.txt"
Expand Down
8 changes: 3 additions & 5 deletions curl-static-mac.sh
Original file line number Diff line number Diff line change
Expand Up @@ -73,15 +73,13 @@ arch_variants() {
_clang_path;
[ -z "${ARCH}" ] && ARCH="$(uname -m)"
case "${ARCH}" in
x86_64) arch="amd64"
ARCHFLAGS="-arch x86_64"
x86_64) ARCHFLAGS="-arch x86_64"
OPENSSL_ARCH="darwin64-x86_64"
TARGET="x86_64-apple-darwin"
export CC="${clang_path} -target x86_64-apple-macos11"
export CXX="${clang_pp_path} -target x86_64-apple-macos11"
;;
arm64) arch="arm64"
ARCHFLAGS="-arch arm64"
arm64) ARCHFLAGS="-arch arm64"
OPENSSL_ARCH="darwin64-arm64"
TARGET="aarch64-apple-darwin"
export CC="${clang_path} -target arm64-apple-macos11"
Expand Down Expand Up @@ -554,7 +552,7 @@ install_curl() {
sha256sum src/curl
src/curl -V || true

cp -f src/curl "${RELEASE_DIR}/release/bin/curl-macos-${arch}"
cp -f src/curl "${RELEASE_DIR}/release/bin/curl-macos-${ARCH}"

if [ ! -f "${RELEASE_DIR}/version.txt" ]; then
echo "${CURL_VERSION}" > "${RELEASE_DIR}/version.txt"
Expand Down
11 changes: 1 addition & 10 deletions curl-static-win.sh
Original file line number Diff line number Diff line change
Expand Up @@ -107,16 +107,7 @@ configure_toolchain() {
arch_variants() {
echo "Setting up the ARCH and OpenSSL arch, Arch: ${ARCH}"

[ -z "${ARCH}" ] && ARCH="${ARCH_HOST}"
case "${ARCH}" in
x86_64) arch="amd64" ;;
armv7) arch="armv7" ;;
i686) arch="i686" ;;
*) arch="${ARCH}" ;;
esac

TARGET="${ARCH}-w64-mingw32"

unset LD STRIP LDFLAGS
export LDFLAGS="-L${PREFIX}/lib -L${PREFIX}/lib64" ;

Expand Down Expand Up @@ -683,7 +674,7 @@ install_curl() {
mkdir -p "${RELEASE_DIR}/release/bin/"

ls -l src/curl.exe
cp -pf src/curl.exe "${RELEASE_DIR}/release/bin/curl-windows-${arch}.exe"
cp -pf src/curl.exe "${RELEASE_DIR}/release/bin/curl-windows-${ARCH}.exe"

if [ ! -f "${RELEASE_DIR}/release/version.txt" ]; then
echo "${CURL_VERSION}" > "${RELEASE_DIR}/release/version.txt"
Expand Down

0 comments on commit e38de71

Please sign in to comment.