diff --git a/mozglue/build/Makefile.in b/mozglue/build/Makefile.in index 1cfa41ea040d..0a86b3c15d73 100644 --- a/mozglue/build/Makefile.in +++ b/mozglue/build/Makefile.in @@ -14,10 +14,3 @@ GARBAGE += mozglue.def endif include $(topsrcdir)/mozglue/build/replace_malloc.mk - -ifdef MOZ_LINKER -ifeq (arm, $(TARGET_CPU)) -OS_LDFLAGS += -Wl,-version-script,$(srcdir)/arm-eabi-filter -endif - -endif diff --git a/mozglue/build/moz.build b/mozglue/build/moz.build index c3594f0afac3..9970259601b9 100644 --- a/mozglue/build/moz.build +++ b/mozglue/build/moz.build @@ -98,4 +98,7 @@ if CONFIG['OS_TARGET'] == 'Darwin': # for TLS. LDFLAGS += ['-Wl,-bind_at_load'] +if CONFIG['MOZ_LINKER'] and CONFIG['TARGET_CPU'] == 'arm': + LDFLAGS += ['-Wl,-version-script,%s/arm-eabi-filter' % SRCDIR] + DIST_INSTALL = True