]> granicus.if.org Git - python/commitdiff
Gregor Hoffleit writes:
authorGuido van Rossum <guido@python.org>
Fri, 11 Dec 1998 01:10:29 +0000 (01:10 +0000)
committerGuido van Rossum <guido@python.org>
Fri, 11 Dec 1998 01:10:29 +0000 (01:10 +0000)
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.

Modules/makesetup

index 8ce1e88b2b6241d5a22d3e2728f694a9fc6a9d96..0fefcfffc1f3c50b023ae6802c47e834c0735867 100755 (executable)
@@ -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