Skip to content

Commit

Permalink
Fix last commit
Browse files Browse the repository at this point in the history
Signed-off-by: falkTX <falktx@falktx.com>
  • Loading branch information
falkTX committed Nov 27, 2023
1 parent e48a5b1 commit f4eb3de
Showing 1 changed file with 17 additions and 4 deletions.
21 changes: 17 additions & 4 deletions bootstrap-python.sh
Original file line number Diff line number Diff line change
Expand Up @@ -52,19 +52,29 @@ function build_conf_openssl() {
local extraconfrules="${3}"

local pkgdir="${PAWPAW_BUILDDIR}/${name}-${version}"
local extraflags=""

if [ -n "${TOOLCHAIN_PREFIX}" ]; then
export MACHINE="x86_64"
if [ "${WIN64}" -eq 1 ]; then
export MACHINE="x86_64"
export SYSTEM="mingw64"
extraflags="-Wa,-mbig-obj"
elif [ "${WIN32}" -eq 1 ]; then
export MACHINE="i686"
export SYSTEM="mingw"
else
export MACHINE="$(uname -m)"
export SYSTEM="linux2"
fi
export RELEASE="whatever"
export SYSTEM="mingw64" # mingw
export BUILD="unknown"
fi

_prebuild "${name}" "${pkgdir}"

if [ ! -f "${pkgdir}/.stamp_configured" ]; then
pushd "${pkgdir}"
./config --prefix="${PAWPAW_PREFIX}" ${extraconfrules} CFLAGS="${TARGET_CFLAGS} -Wa,-mbig-obj"
./config --prefix="${PAWPAW_PREFIX}" ${extraconfrules} CFLAGS="${TARGET_CFLAGS} ${extraflags}"
touch .stamp_configured
popd
fi
Expand All @@ -84,7 +94,10 @@ function build_conf_openssl() {
fi

if [ -n "${TOOLCHAIN_PREFIX}" ]; then
unset CROSS_COMPILE
unset MACHINE
unset SYSTEM
unset RELEASE
unset BUILD
fi

_postbuild
Expand Down

0 comments on commit f4eb3de

Please sign in to comment.