29 lines
899 B
Bash
Executable File
29 lines
899 B
Bash
Executable File
#!/bin/sh
|
|
|
|
export CC="gcc"
|
|
#export LDFLAGS=""
|
|
#export CFLAGS=""
|
|
#export CPPFLAGS=""
|
|
#export CXXFLAGS=""
|
|
|
|
if [ -e /etc/ssl/ca-bundle.crt ]; then
|
|
export SSL_CERT_FILE=/etc/ssl/ca-bundle.crt
|
|
fi
|
|
|
|
if [ "$(which python3 2> /dev/null)" ]; then
|
|
export PY3VER="$(python3 -V | sed -n 's/^Python \(\w\+\.\w\+\).*/\1/p')"
|
|
export PY3PKGS="/lib/python$PY3VER/site-packages"
|
|
export PYTHONHOME="/usr:/usr"
|
|
export PYTHONPATH="/lib/python/$PY3VER:$PY3PKGS"
|
|
fi
|
|
|
|
if [ "$(which pkgconf 2> /dev/null)" ]; then
|
|
export PKG_CONFIG="$(which pkgconf) "
|
|
fi
|
|
|
|
# TODO: remove the need for these lines by making musl-cross-make build a gcc
|
|
# with a header search path of /include only, with all headers contained there.
|
|
export CPATH="${CPATH:-/include}"
|
|
export C_INCLUDE_PATH="/powerpc64le-lix-linux-musl/include"
|
|
export CPLUS_INCLUDE_PATH="/include/c++/9.2.0/powerpc64le-lix-linux-musl:/include/c++/9.2.0"
|