Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 10 additions & 2 deletions cpython-unix/build-tcl.sh
Original file line number Diff line number Diff line change
Expand Up @@ -67,12 +67,20 @@ rm -rf pkgs/sqlite* pkgs/tdbc*
pushd unix

CFLAGS="${EXTRA_TARGET_CFLAGS} -fPIC -I${TOOLS_PATH}/deps/include"
LDFLAGS="${EXTRA_TARGET_CFLAGS} -L${TOOLS_PATH}/deps/lib"
LDFLAGS="${EXTRA_TARGET_LDFLAGS} -L${TOOLS_PATH}/deps/lib"
if [[ "${PYBUILD_PLATFORM}" != macos* ]]; then
LDFLAGS="${LDFLAGS} -Wl,--exclude-libs,ALL"
fi

CFLAGS="${CFLAGS}" CPPFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" ./configure \
# Tcl configures and builds packages (itcl, threads, ...) as make targets.
# These do not pick up environment variables passed to ./configure
# Export compiler flags to make them available when configuring and building
# these packages.
# An alternative is to include these when calling ./configure AND make
export CFLAGS LDFLAGS
export CPPFLAGS="${CFLAGS}"

./configure \
--build="${BUILD_TRIPLE}" \
--host="${TARGET_TRIPLE}" \
--prefix=/tools/deps \
Expand Down
24 changes: 24 additions & 0 deletions cpython-unix/targets.yml
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,9 @@ armv7-unknown-linux-gnueabi:
host_cxx: /usr/bin/x86_64-linux-gnu-g++
target_cc: /usr/bin/arm-linux-gnueabi-gcc
target_cxx: /usr/bin/arm-linux-gnueabi-g++
target_ldflags:
# Hardening
- '-Wl,-z,noexecstack'
needs:
- autoconf
- bdb
Expand Down Expand Up @@ -226,6 +229,9 @@ armv7-unknown-linux-gnueabihf:
host_cxx: /usr/bin/x86_64-linux-gnu-g++
target_cc: /usr/bin/arm-linux-gnueabihf-gcc
target_cxx: /usr/bin/arm-linux-gnueabihf-g++
target_ldflags:
# Hardening
- '-Wl,-z,noexecstack'
needs:
- autoconf
- bdb
Expand Down Expand Up @@ -266,6 +272,9 @@ loongarch64-unknown-linux-gnu:
host_cxx: /usr/bin/x86_64-linux-gnu-g++
target_cc: /usr/bin/loongarch64-linux-gnu-gcc
target_cxx: /usr/bin/loongarch64-linux-gnu-g++
target_ldflags:
# Hardening
- '-Wl,-z,noexecstack'
needs:
- autoconf
- bdb
Expand Down Expand Up @@ -307,6 +316,9 @@ mips-unknown-linux-gnu:
host_cxx: /usr/bin/x86_64-linux-gnu-g++
target_cc: /usr/bin/mips-linux-gnu-gcc
target_cxx: /usr/bin/mips-linux-gnu-g++
target_ldflags:
# Hardening
- '-Wl,-z,noexecstack'
needs:
- autoconf
- bdb
Expand Down Expand Up @@ -348,6 +360,9 @@ mipsel-unknown-linux-gnu:
host_cxx: /usr/bin/x86_64-linux-gnu-g++
target_cc: /usr/bin/mipsel-linux-gnu-gcc
target_cxx: /usr/bin/mipsel-linux-gnu-g++
target_ldflags:
# Hardening
- '-Wl,-z,noexecstack'
needs:
- autoconf
- bdb
Expand Down Expand Up @@ -389,6 +404,9 @@ ppc64le-unknown-linux-gnu:
host_cxx: /usr/bin/x86_64-linux-gnu-g++
target_cc: /usr/bin/powerpc64le-linux-gnu-gcc
target_cxx: /usr/bin/powerpc64le-linux-gnu-g++
target_ldflags:
# Hardening
- '-Wl,-z,noexecstack'
needs:
- autoconf
- bdb
Expand Down Expand Up @@ -430,6 +448,9 @@ riscv64-unknown-linux-gnu:
host_cxx: /usr/bin/x86_64-linux-gnu-g++
target_cc: /usr/bin/riscv64-linux-gnu-gcc
target_cxx: /usr/bin/riscv64-linux-gnu-g++
target_ldflags:
# Hardening
- '-Wl,-z,noexecstack'
needs:
- autoconf
- bdb
Expand Down Expand Up @@ -474,6 +495,9 @@ s390x-unknown-linux-gnu:
target_cflags:
# set the minimum compatibility level to z10 (released 2008)
- '-march=z10'
target_ldflags:
# Hardening
- '-Wl,-z,noexecstack'
needs:
- autoconf
- bdb
Expand Down
3 changes: 2 additions & 1 deletion pythonbuild/downloads.py
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,8 @@
"version": "1.4.19",
},
"mpdecimal": {
"url": "https://www.bytereef.org/software/mpdecimal/releases/mpdecimal-4.0.0.tar.gz",
# Mirrored from https://www.bytereef.org/software/mpdecimal/releases/mpdecimal-4.0.0.tar.gz
"url": "https://astral-sh.github.io/mirror/files/mpdecimal-4.0.0.tar.gz",
"size": 315325,
"sha256": "942445c3245b22730fd41a67a7c5c231d11cb1b9936b9c0f76334fb7d0b4468c",
"version": "4.0.0",
Expand Down
Loading