summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1998-12-11 01:10:29 (GMT)
committerGuido van Rossum <guido@python.org>1998-12-11 01:10:29 (GMT)
commit732aa2f9874c8a37b6cac04718946d65e5b92bd2 (patch)
treea86280d0f45436d4a167ca9a752e140ae87668b2
parentaaed9710e9c0f7362c683c56c0bf086aa3914445 (diff)
downloadcpython-732aa2f9874c8a37b6cac04718946d65e5b92bd2.zip
cpython-732aa2f9874c8a37b6cac04718946d65e5b92bd2.tar.gz
cpython-732aa2f9874c8a37b6cac04718946d65e5b92bd2.tar.bz2
Gregor Hoffleit writes:
But IMHO, this problem really reveals an annoyance in Python's makesetup. makesetup puts the global include directories "$(INCLUDEPY) $(EXECINCLUDEPY)" in front of the directories defined by the module in Setup. Therefore global (potentially older) header files are preferred over the ones set by the module, which makes it hard to compile new versions of modules when the old versions are installed. AFAIK, the other way around is common practice for most other software. This patch to makesetup would be an potential fix for this problem, though I don't know if it breaks anything else.
-rwxr-xr-xModules/makesetup2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/makesetup b/Modules/makesetup
index 8ce1e88..0fefcff 100755
--- a/Modules/makesetup
+++ b/Modules/makesetup
@@ -185,7 +185,7 @@ sed -e 's/[ ]*#.*//' -e '/^[ ]*$/d' |
case $doconfig in
no) cc="$cc \$(CCSHARED)";;
esac
- rule="$obj: $src; $cc \$(CFLAGS) $cpps -c $src"
+ rule="$obj: $src; $cc $cpps \$(CFLAGS) -c $src"
echo "$rule" >>$rulesf
done
case $doconfig in