summaryrefslogtreecommitdiffstats
path: root/Modules/makesetup
diff options
context:
space:
mode:
authorNeil Schemenauer <nascheme@enme.ucalgary.ca>2001-01-26 16:22:26 (GMT)
committerNeil Schemenauer <nascheme@enme.ucalgary.ca>2001-01-26 16:22:26 (GMT)
commit83356ef31d4fd0b643134b13cf7292cd8f6efa86 (patch)
treeaa46623c94871ee45b11e81380e88b8c2ec9b260 /Modules/makesetup
parent61c5115672f679a6fc0ef8fb2863ac0d31df364f (diff)
downloadcpython-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/makesetup')
-rwxr-xr-xModules/makesetup8
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