diff options
author | Christian Heimes <christian@python.org> | 2021-12-10 13:11:55 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-10 13:11:55 (GMT) |
commit | 036bbb1d1b6156a1a72c40e9f907f302505085bc (patch) | |
tree | 779e3a6b6f1ed9485b3410458a49769545ef1dbd /Modules/makesetup | |
parent | 74b23c97cd5e178970a199066795cf0561f46b72 (diff) | |
download | cpython-036bbb1d1b6156a1a72c40e9f907f302505085bc.zip cpython-036bbb1d1b6156a1a72c40e9f907f302505085bc.tar.gz cpython-036bbb1d1b6156a1a72c40e9f907f302505085bc.tar.bz2 |
bpo-46023: Fix makesetup handling of disabled rule (GH-30001)
Diffstat (limited to 'Modules/makesetup')
-rwxr-xr-x | Modules/makesetup | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Modules/makesetup b/Modules/makesetup index 2335724..6d83b8f 100755 --- a/Modules/makesetup +++ b/Modules/makesetup @@ -206,6 +206,9 @@ sed -e 's/[ ]*#.*//' -e '/^[ ]*$/d' | cpps="\$(MODULE_${mods_upper}_CFLAGS)" libs="\$(MODULE_${mods_upper}_LDFLAGS)" fi + case $DISABLED in + *$mods*) doconfig=disabled;; + esac case $doconfig in yes) LIBS="$LIBS $libs" |