Skip to content

Commit 340ef50

Browse files
committed
depends: Defer to Python detected by autoconf
Since autoconf already detects the correct python binary path, we should use that instead of going around it. Also has the benefit of working in extremely restricted environments where /usr/bin/env might not be available.
1 parent 7ec7aea commit 340ef50

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Makefile.am

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -642,13 +642,13 @@ clean-local:
642642
check-symbols: $(bin_PROGRAMS)
643643
if GLIBC_BACK_COMPAT
644644
@echo "Checking glibc back compat..."
645-
$(AM_V_at) READELF=$(READELF) CPPFILT=$(CPPFILT) $(top_srcdir)/contrib/devtools/symbol-check.py < $(bin_PROGRAMS)
645+
$(AM_V_at) READELF=$(READELF) CPPFILT=$(CPPFILT) $(PYTHON) $(top_srcdir)/contrib/devtools/symbol-check.py < $(bin_PROGRAMS)
646646
endif
647647

648648
check-security: $(bin_PROGRAMS)
649649
if HARDEN
650650
@echo "Checking binary security..."
651-
$(AM_V_at) READELF=$(READELF) OBJDUMP=$(OBJDUMP) $(top_srcdir)/contrib/devtools/security-check.py < $(bin_PROGRAMS)
651+
$(AM_V_at) READELF=$(READELF) OBJDUMP=$(OBJDUMP) $(PYTHON) $(top_srcdir)/contrib/devtools/security-check.py < $(bin_PROGRAMS)
652652
endif
653653

654654
if ENABLE_BIP70

0 commit comments

Comments
 (0)