Skip to content

Commit

Permalink
release: add check-symbols and check-security make targets
Browse files Browse the repository at this point in the history
These are not added to the default checks because some of them depend on
release-build configs.

[Zcash: See 56734f4 for check-security]
  • Loading branch information
theuni authored and str4d committed Oct 15, 2016
1 parent 3797182 commit a5e918a
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ LIBZCASH_H = \
zcash/prf.h \
zcash/util.h

.PHONY: FORCE check-security
.PHONY: FORCE check-symbols check-security
# bitcoin core #
BITCOIN_CORE_H = \
addrman.h \
Expand Down Expand Up @@ -482,6 +482,12 @@ clean-local:
$(AM_V_CXX) $(OBJCXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
$(CPPFLAGS) $(AM_CXXFLAGS) $(QT_INCLUDES) $(CXXFLAGS) -c -o $@ $<

check-symbols: $(bin_PROGRAMS)
if GLIBC_BACK_COMPAT
@echo "Checking glibc back compat of [$(bin_PROGRAMS)]..."
$(AM_V_at) READELF=$(READELF) CPPFILT=$(CPPFILT) $(top_srcdir)/contrib/devtools/symbol-check.py < $(bin_PROGRAMS)
endif

check-security: $(bin_PROGRAMS)
if HARDEN
@echo "Checking binary security of [$(bin_PROGRAMS)]..."
Expand Down

0 comments on commit a5e918a

Please sign in to comment.