diff options
Diffstat (limited to 'config/config.mk')
-rw-r--r-- | config/config.mk | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/config/config.mk b/config/config.mk index 2d1ff365b1..2029889728 100644 --- a/config/config.mk +++ b/config/config.mk @@ -526,45 +526,11 @@ EXPAND_MKSHLIB_ARGS += --symbol-order $(SYMBOL_ORDER) endif EXPAND_MKSHLIB = $(EXPAND_LIBS_EXEC) $(EXPAND_MKSHLIB_ARGS) -- $(MKSHLIB) -# $(call CHECK_SYMBOLS,lib,PREFIX,dep_name,test) -# Checks that the given `lib` doesn't contain dependency on symbols with a -# version starting with `PREFIX`_ and matching the `test`. `dep_name` is only -# used for the error message. -# `test` is an awk expression using the information in the variable `v` which -# contains a list of version items ([major, minor, ...]). -define CHECK_SYMBOLS -@$(TOOLCHAIN_PREFIX)readelf -sW $(1) | \ -awk '$$8 ~ /@$(2)_/ { \ - split($$8,a,"@"); \ - split(a[2],b,"_"); \ - split(b[2],v,"."); \ - if ($(4)) { \ - if (!found) { \ - print "TEST-UNEXPECTED-FAIL | check_stdcxx | We do not want these $(3) symbol versions to be used:" \ - } \ - print " ",$$8; \ - found=1 \ - } \ -} \ -END { \ - if (found) { \ - exit(1) \ - } \ -}' -endef - -ifneq (,$(MOZ_LIBSTDCXX_TARGET_VERSION)$(MOZ_LIBSTDCXX_HOST_VERSION)) -CHECK_STDCXX = $(call CHECK_SYMBOLS,$(1),GLIBCXX,libstdc++,v[1] > 3 || (v[1] == 3 && v[2] == 4 && v[3] > 16)) -CHECK_GLIBC = $(call CHECK_SYMBOLS,$(1),GLIBC,libc,v[1] > 2 || (v[1] == 2 && v[2] > 12)) -endif - ifeq (,$(filter $(OS_TARGET),WINNT Darwin)) CHECK_TEXTREL = @$(TOOLCHAIN_PREFIX)readelf -d $(1) | grep TEXTREL > /dev/null && echo 'TEST-UNEXPECTED-FAIL | check_textrel | We do not want text relocations in libraries and programs' || true endif define CHECK_BINARY -$(call CHECK_GLIBC,$(1)) -$(call CHECK_STDCXX,$(1)) $(call CHECK_TEXTREL,$(1)) $(call LOCAL_CHECKS,$(1)) $(call CHECK_MOZGLUE_ORDER,$(1)) |