python bootstrap with openssl
This commit is contained in:
@@ -22,6 +22,14 @@ def setup():
|
||||
autotools.make('CC=%s AR=%s RANLIB=%s CFLAGS="%s -D_FILE_OFFSET_BITS=64 -fPIC" libbz2.a' % (get.CC(), get.AR(), get.RANLIB(), get.CFLAGS()))
|
||||
shelltools.system("cp libbz2.a %s/temp/lib/libbz2.a" % get.workDIR())
|
||||
shelltools.cd("..")
|
||||
shelltools.system("echo -e '\033[0;36mBuilding OpenSSL\033[0m' ")
|
||||
shelltools.cd("openssl-1.1.1d")
|
||||
shelltools.system("./Configure --prefix=%s/temp --openssldir=%s/openssl/etc/ssl --libdir=lib no-shared enable-ec_nistp_64_gcc_128 linux-x86_64 -Wa,--noexecstack" %(get.workDIR(), get.workDIR()))
|
||||
autotools.make()
|
||||
autotools.make("install")
|
||||
shelltools.cd("..")
|
||||
|
||||
shelltools.system("echo -e '\033[0;36mBuilding Python\033[0m' ")
|
||||
|
||||
pisitools.cflags.add("-fwrapv")
|
||||
|
||||
@@ -37,7 +45,7 @@ def setup():
|
||||
shelltools.unlinkDir("Modules/%s" % dir)
|
||||
|
||||
shelltools.export("CFLAGS", "-I%s/temp/include -O3" %get.workDIR())
|
||||
shelltools.export("LDFLAGS", "-L%s/temp/lib -lbz2 -lpthread -ldl" %get.workDIR())
|
||||
shelltools.export("LDFLAGS", "-L%s/temp/lib -lssl -lcrypto -lbz2 -lpthread -ldl" %get.workDIR())
|
||||
|
||||
autotools.autoreconf("-vif")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user