[Python-checkins] bpo-45548: FreeBSD doesn't like auto vars in makesetup (GH-29216)
tiran
webhook-mailer at python.org
Mon Oct 25 14:53:15 EDT 2021
https://github.com/python/cpython/commit/2b8677a3cd855eb3a579894c64588eab0e006269
commit: 2b8677a3cd855eb3a579894c64588eab0e006269
branch: main
author: Christian Heimes <christian at python.org>
committer: tiran <christian at python.org>
date: 2021-10-25T20:52:55+02:00
summary:
bpo-45548: FreeBSD doesn't like auto vars in makesetup (GH-29216)
files:
M Modules/makesetup
diff --git a/Modules/makesetup b/Modules/makesetup
index 849f15fddaab0..9046657caf4a7 100755
--- a/Modules/makesetup
+++ b/Modules/makesetup
@@ -236,7 +236,7 @@ sed -e 's/[ ]*#.*//' -e '/^[ ]*$/d' |
cc="$cc \$(PY_BUILTIN_MODULE_CFLAGS)";;
esac
mods_upper=$(echo $mods | tr '[a-z]' '[A-Z]')
- rule="$obj: $src \$(MODULE_${mods_upper}_DEPS) \$(PYTHON_HEADERS); $cc $cpps -c \$< -o \$@"
+ rule="$obj: $src \$(MODULE_${mods_upper}_DEPS) \$(PYTHON_HEADERS); $cc $cpps -c $src -o $obj"
echo "$rule" >>$rulesf
done
case $doconfig in
@@ -249,7 +249,7 @@ sed -e 's/[ ]*#.*//' -e '/^[ ]*$/d' |
no) SHAREDMODS="$SHAREDMODS $file";;
esac
rule="$file: $objs"
- rule="$rule; \$(BLDSHARED) $objs $libs $ExtraLibs -o \$@"
+ rule="$rule; \$(BLDSHARED) $objs $libs $ExtraLibs -o $file"
echo "$rule" >>$rulesf
done
done
More information about the Python-checkins
mailing list