- Use PY_CFLAGS when compile modules that will be part of the interpreter.
- Put shared modules in the same place as object files.
This commit is contained in:
parent
61c5115672
commit
83356ef31d
|
@ -216,9 +216,11 @@ sed -e 's/[ ]*#.*//' -e '/^[ ]*$/d' |
|
||||||
*) src='$(srcdir)/'"$srcdir/$src";;
|
*) src='$(srcdir)/'"$srcdir/$src";;
|
||||||
esac
|
esac
|
||||||
case $doconfig in
|
case $doconfig in
|
||||||
no) cc="$cc \$(CCSHARED)";;
|
no) cc="$cc \$(CCSHARED) \$(CFLAGS)";;
|
||||||
|
*)
|
||||||
|
cc="$cc \$(PY_CFLAGS)";;
|
||||||
esac
|
esac
|
||||||
rule="$obj: $src; $cc $cpps \$(CFLAGS) -c $src -o $obj"
|
rule="$obj: $src; $cc $cpps -c $src -o $obj"
|
||||||
echo "$rule" >>$rulesf
|
echo "$rule" >>$rulesf
|
||||||
done
|
done
|
||||||
case $doconfig in
|
case $doconfig in
|
||||||
|
@ -230,7 +232,7 @@ sed -e 's/[ ]*#.*//' -e '/^[ ]*$/d' |
|
||||||
*$mod.o*) base=$mod;;
|
*$mod.o*) base=$mod;;
|
||||||
*) base=${mod}module;;
|
*) base=${mod}module;;
|
||||||
esac
|
esac
|
||||||
file="$base\$(SO)"
|
file="$srcdir/$base\$(SO)"
|
||||||
case $doconfig in
|
case $doconfig in
|
||||||
no) SHAREDMODS="$SHAREDMODS $file";;
|
no) SHAREDMODS="$SHAREDMODS $file";;
|
||||||
esac
|
esac
|
||||||
|
|
Loading…
Reference in New Issue