Commit b5e65bc1 authored by gsell's avatar gsell

Python: fixes in build script

- prepend to PATH and LD_LIBRARY_PATH not append
- set CFLAFS too (same as CPPFLAFS)
parent 45f7cd31
......@@ -48,14 +48,14 @@ pbuild::post_install_Linux() {
}
pbuild::post_install() {
export LD_LIBRARY_PATH+=":${PREFIX}/lib"
export LDFLAGS="-L${OPENSSL_LIBRARY_DIR}"
export PATH="${PREFIX}/bin:${PATH}"
export LD_LIBRARY_PATH="${PREFIX}/lib:${LD_LIBRARY_PATH}"
export CFLAGS="-I${OPENSSL_INCLUDE_DIR} -I${OPENSSL_INCLUDE_DIR}/openssl"
export CPPFLAGS="-I${OPENSSL_INCLUDE_DIR} -I${OPENSSL_INCLUDE_DIR}/openssl"
export LD_LIBRARY_PATH+=":${PREFIX}/lib"
export LDFLAGS="-L${OPENSSL_LIBRARY_DIR}"
ln -fs "${PREFIX}/bin/python${V%%.*}" "${PREFIX}/bin/python"
ln -fs "${PREFIX}/include/python${V%.*}m" "${PREFIX}/include/python"
ln -fs "${PREFIX}/include/python${V%.*}m" "${PREFIX}/include/python${V%.*}"
PATH+=":${PREFIX}/bin"
if (( V_MAJOR == 2 || (V_MAJOR == 3 && V_MINOR <= 7) )); then
cd "${BUILDBLOCK_DIR}"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment