diff --git a/config/rules.mk b/config/rules.mk index 42f53753731..13ea9e872b6 100644 --- a/config/rules.mk +++ b/config/rules.mk @@ -410,6 +410,15 @@ endif endif endif +ifeq ($(OS_ARCH),Linux) +ifneq (,$(filter mips mipsel,$(OS_TEST))) +ifeq ($(MODULE),layout) +OS_CFLAGS += -Wa,-xgot +OS_CXXFLAGS += -Wa,-xgot +endif +endif +endif + # # HP-UXBeOS specific section: for COMPONENTS only, add -Bsymbolic flag # which uses internal symbols first