Commit 6c457a6d authored by Andrew MacIntyre's avatar Andrew MacIntyre

add build machinery for the SSL socket module

parent 4a329b6a
...@@ -59,6 +59,8 @@ HAVE_NCURSES= no ...@@ -59,6 +59,8 @@ HAVE_NCURSES= no
HAVE_GDBM= no HAVE_GDBM= no
# Do you have the BZ2 compression library installed? # Do you have the BZ2 compression library installed?
HAVE_BZ2= no HAVE_BZ2= no
# Do you have the OpenSSL libraries installed
HAVE_OPENSSL= no
# === install locations === # === install locations ===
# default value of PYTHONHOME # default value of PYTHONHOME
...@@ -476,6 +478,9 @@ endif ...@@ -476,6 +478,9 @@ endif
ifeq ($(HAVE_BZ2),yes) ifeq ($(HAVE_BZ2),yes)
HARDEXTMODULES+= bz2 HARDEXTMODULES+= bz2
endif endif
ifeq ($(HAVE_OPENSSL),yes)
HARDEXTMODULES+= _ssl
endif
# Expat is now distributed with the Python source # Expat is now distributed with the Python source
HARDEXTMODULES+= pyexpat HARDEXTMODULES+= pyexpat
...@@ -671,6 +676,9 @@ zlib$(MODULE.EXT): $(OUT)zlibmodule$O $(OUT)zlib_m.def $(PYTHON.IMPLIB) ...@@ -671,6 +676,9 @@ zlib$(MODULE.EXT): $(OUT)zlibmodule$O $(OUT)zlib_m.def $(PYTHON.IMPLIB)
bz2$(MODULE.EXT): $(OUT)bz2module$O $(OUT)bz2_m.def $(PYTHON.IMPLIB) bz2$(MODULE.EXT): $(OUT)bz2module$O $(OUT)bz2_m.def $(PYTHON.IMPLIB)
$(LD) $(LDFLAGS.DLL) -o $@ $(^^) $(L^) $(LIBS) -lbz2 $(LD) $(LDFLAGS.DLL) -o $@ $(^^) $(L^) $(LIBS) -lbz2
_ssl$(MODULE.EXT): $(OUT)_ssl$O $(OUT)_ssl_m.def $(PYTHON.IMPLIB)
$(LD) $(LDFLAGS.DLL) -o $@ $(^^) $(L^) $(LIBS) -lssl -lcrypto
# the test target # the test target
test: test:
-find ../../Lib -name "*.py[co]" -exec rm {} ";" -find ../../Lib -name "*.py[co]" -exec rm {} ";"
......
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