2015-08-12 09:11:49 +02:00
|
|
|
# HG changeset patch
|
|
|
|
# User Wolfgang Rosenauer <wr@rosenauer.org>
|
2018-03-13 20:46:06 +01:00
|
|
|
# Parent f62746698c37af9593338fe75fbff6b319cd370c
|
2015-08-12 09:11:49 +02:00
|
|
|
|
|
|
|
diff --git a/config/config.mk b/config/config.mk
|
|
|
|
--- a/config/config.mk
|
|
|
|
+++ b/config/config.mk
|
2018-03-13 20:46:06 +01:00
|
|
|
@@ -471,17 +471,16 @@ ifeq ($(MOZ_WIDGET_TOOLKIT),android)
|
2015-08-12 09:11:49 +02:00
|
|
|
# of the linker command line), if libmozglue.so ends up after libc.so, all
|
|
|
|
# hell breaks loose, so better safe than sorry, and check it's actually the
|
|
|
|
# case.
|
|
|
|
CHECK_MOZGLUE_ORDER = @$(TOOLCHAIN_PREFIX)readelf -d $(1) | grep NEEDED | awk '{ libs[$$NF] = ++n } END { if (libs["[libmozglue.so]"] && libs["[libc.so]"] < libs["[libmozglue.so]"]) { print "libmozglue.so must be linked before libc.so"; exit 1 } }'
|
|
|
|
endif
|
|
|
|
|
|
|
|
define CHECK_BINARY
|
2016-01-26 23:39:03 +01:00
|
|
|
$(call CHECK_GLIBC,$(1))
|
2015-08-12 09:11:49 +02:00
|
|
|
-$(call CHECK_STDCXX,$(1))
|
|
|
|
$(call CHECK_TEXTREL,$(1))
|
|
|
|
$(call LOCAL_CHECKS,$(1))
|
|
|
|
$(call CHECK_MOZGLUE_ORDER,$(1))
|
|
|
|
endef
|
|
|
|
|
|
|
|
# autoconf.mk sets OBJ_SUFFIX to an error to avoid use before including
|
|
|
|
# this file
|
|
|
|
OBJ_SUFFIX := $(_OBJ_SUFFIX)
|