mirror of
https://github.com/YellowJacketLinux/lfs-buildscripts.git
synced 2025-02-02 23:07:18 +08:00
Disable OpenSSL in Python
This commit is contained in:
parent
31c4fae8c2
commit
0f27394f23
@ -152,6 +152,14 @@ else
|
||||
sleep 3
|
||||
fi
|
||||
|
||||
# Disable OpenSSL
|
||||
pushd /usr/include
|
||||
mv openssl dis-openssl
|
||||
popd
|
||||
pushd /usr/lib/pkgconfig
|
||||
mv libssl.pc dis-libssl.pc
|
||||
popd
|
||||
|
||||
/bin/bash CH08.50-python.sh
|
||||
|
||||
if [ $? -ne 0 ]; then
|
||||
@ -162,6 +170,14 @@ else
|
||||
sleep 3
|
||||
fi
|
||||
|
||||
# re-enable OpenSSL
|
||||
pushd /usr/include
|
||||
mv dis-openssl openssl
|
||||
popd
|
||||
pushd /usr/lib/pkgconfig
|
||||
mv dis-libssl.pc libssl.pc
|
||||
popd
|
||||
|
||||
/bin/bash CH08.51-flit-core.sh
|
||||
|
||||
if [ $? -ne 0 ]; then
|
||||
|
@ -12,17 +12,9 @@ tar -Jxf ${python_tarball}
|
||||
|
||||
cd Python-${python_version}
|
||||
|
||||
# if configure switch doesn't work, try:
|
||||
#sed -i'' -e '1i\
|
||||
##error' ./Modules/_ssl.c
|
||||
#sed -i'' -e '1i\
|
||||
##error' ./Modules/_hashopenssl.c
|
||||
|
||||
|
||||
./configure --prefix=/usr \
|
||||
--enable-shared \
|
||||
--with-system-expat \
|
||||
--disable-ssl \
|
||||
--enable-optimizations
|
||||
|
||||
make
|
||||
|
Loading…
Reference in New Issue
Block a user