diff options
author | Rob Austein <sra@hactrn.net> | 2010-12-29 02:46:26 +0000 |
---|---|---|
committer | Rob Austein <sra@hactrn.net> | 2010-12-29 02:46:26 +0000 |
commit | d662ed08e008cddd97f2ef076417c51918fc518d (patch) | |
tree | dc142e148b5f8980b1bf404451b299fd384156f2 /pywrap | |
parent | e0f59781161f8faf2ca51265041852980ae66f85 (diff) |
First cut at getting Python stuff fully (well, more fully) under autoconf
svn path=/pow/Makefile.in; revision=3582
Diffstat (limited to 'pywrap')
-rw-r--r-- | pywrap/Makefile.in | 9 | ||||
-rw-r--r-- | pywrap/build.py | 8 |
2 files changed, 10 insertions, 7 deletions
diff --git a/pywrap/Makefile.in b/pywrap/Makefile.in index 7c37faab..36432cd9 100644 --- a/pywrap/Makefile.in +++ b/pywrap/Makefile.in @@ -1,9 +1,16 @@ # $Id$ +CFLAGS = @CFLAGS@ +LDFLAGS = @LDFLAGS@ +LIBS = @LIBS@ -lssl -lcrypto + all: pywrap pywrap: pywrap.c - python build.py + AC_CFLAGS='${CFLAGS}' AC_LDFLAGS='${LDFLAGS}' AC_LIBS='${LIBS}' @PYTHON@ build.py clean: rm -f *.o pywrap + +test: + @true diff --git a/pywrap/build.py b/pywrap/build.py index 23bd4cdf..286b034a 100644 --- a/pywrap/build.py +++ b/pywrap/build.py @@ -25,18 +25,14 @@ import os, subprocess, sys from distutils.sysconfig import (get_config_var as getvar, get_python_inc as getinc) -openssl_dir = os.path.realpath(os.path.join(os.getcwd(), "../openssl/openssl")) - cmd = getvar("CC").split() cmd.append("-o") cmd.append("pywrap") cmd.append("pywrap.c") -cmd.append("-Wl,-rpath,%s" % openssl_dir) -cmd.append("-L%s" % openssl_dir) -cmd.append("-lcrypto") -cmd.append("-lssl") +for var in ("AC_CFLAGS", "AC_LDFLAGS", "AC_LIBS"): + cmd.extend(os.environ[var].split()) cmd.append("-I%s" % getinc(plat_specific = False)) cmd.append("-I%s" % getinc(plat_specific = True)) |