8000 bpo-39761: Fix dtrace build with empty $DFLAGS (GH-18766) · python/cpython@3c97e1e · GitHub
[go: up one dir, main page]

Skip to content

Commit 3c97e1e

Browse files
authored
bpo-39761: Fix dtrace build with empty $DFLAGS (GH-18766)
This fixes a regression introduced in bpo-38960. When DFLAGS was empty, "$DFLAGS" results in an empty argument (""). Without the quotes, an empty variable will be ignored by the shell.
1 parent 2dd4174 commit 3c97e1e

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Fix build with DTrace but without additional DFLAGS.

configure

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11487,7 +11487,7 @@ if ${ac_cv_dtrace_link+:} false; then :
1148711487
else
1148811488
ac_cv_dtrace_link=no
1148911489
echo 'BEGIN{}' > conftest.d
11490-
"$DTRACE" "$DFLAGS" -G -s conftest.d -o conftest.o > /dev/null 2>&1 && \
11490+
"$DTRACE" $DFLAGS -G -s conftest.d -o conftest.o > /dev/null 2>&1 && \
1149111491
ac_cv_dtrace_link=yes
1149211492

1149311493
fi

configure.ac

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3541,7 +3541,7 @@ then
35413541
[ac_cv_dtrace_link], [dnl
35423542
ac_cv_dtrace_link=no
35433543
echo 'BEGIN{}' > conftest.d
3544-
"$DTRACE" "$DFLAGS" -G -s conftest.d -o conftest.o > /dev/null 2>&1 && \
3544+
"$DTRACE" $DFLAGS -G -s conftest.d -o conftest.o > /dev/null 2>&1 && \
35453545
ac_cv_dtrace_link=yes
35463546
])
35473547
if test "$ac_cv_dtrace_link" = "yes"; then

0 commit comments

Comments
 (0)
0