Skip to content

Commit

Permalink
add build flag to build.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
edavidaja committed Jul 2, 2024
1 parent b83ce5f commit 9a2963f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion builder/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -56,12 +56,16 @@ compile_python() {
local PYTHON_MAJOR=$(cut -d'.' -f1 <<<$1)

cd /tmp/Python-${VERSION}

build_flag="--build=$(uname -m)-pc-linux-gnu"

./configure \
--prefix=/opt/python/${VERSION} \
--enable-shared \
--enable-optimizations \
--enable-ipv6 \
LDFLAGS=-Wl,-rpath=/opt/python/${VERSION}/lib,--disable-new-dtags
${build_flag} \
LDFLAGS=-Wl,-rpath=/opt/python/${VERSION}/lib,--disable-new-dtags"
make clean
make
Expand Down

0 comments on commit 9a2963f

Please sign in to comment.