diff options
author | Neil Schemenauer <nascheme@enme.ucalgary.ca> | 2001-01-26 16:22:26 (GMT) |
---|---|---|
committer | Neil Schemenauer <nascheme@enme.ucalgary.ca> | 2001-01-26 16:22:26 (GMT) |
commit | 83356ef31d4fd0b643134b13cf7292cd8f6efa86 (patch) | |
tree | aa46623c94871ee45b11e81380e88b8c2ec9b260 /Modules | |
parent | 61c5115672f679a6fc0ef8fb2863ac0d31df364f (diff) | |
download | cpython-83356ef31d4fd0b643134b13cf7292cd8f6efa86.zip cpython-83356ef31d4fd0b643134b13cf7292cd8f6efa86.tar.gz cpython-83356ef31d4fd0b643134b13cf7292cd8f6efa86.tar.bz2 |
- Use PY_CFLAGS when compile modules that will be part of the interpreter.
- Put shared modules in the same place as object files.
Diffstat (limited to 'Modules')
-rwxr-xr-x | Modules/makesetup | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/Modules/makesetup b/Modules/makesetup index 7f231a9..dcb19b0 100755 --- a/Modules/makesetup +++ b/Modules/makesetup @@ -216,9 +216,11 @@ sed -e 's/[ ]*#.*//' -e '/^[ ]*$/d' | *) src='$(srcdir)/'"$srcdir/$src";; esac case $doconfig in - no) cc="$cc \$(CCSHARED)";; + no) cc="$cc \$(CCSHARED) \$(CFLAGS)";; + *) + cc="$cc \$(PY_CFLAGS)";; esac - rule="$obj: $src; $cc $cpps \$(CFLAGS) -c $src -o $obj" + rule="$obj: $src; $cc $cpps -c $src -o $obj" echo "$rule" >>$rulesf done case $doconfig in @@ -230,7 +232,7 @@ sed -e 's/[ ]*#.*//' -e '/^[ ]*$/d' | *$mod.o*) base=$mod;; *) base=${mod}module;; esac - file="$base\$(SO)" + file="$srcdir/$base\$(SO)" case $doconfig in no) SHAREDMODS="$SHAREDMODS $file";; esac |