diff --git a/core/combo/TARGET_linux-mips.mk b/core/combo/TARGET_linux-mips.mk index 27304eebcb..ba03b5df35 100644 --- a/core/combo/TARGET_linux-mips.mk +++ b/core/combo/TARGET_linux-mips.mk @@ -82,7 +82,7 @@ android_config_h := $(call select-android-config-h,linux-mips) $(combo_2nd_arch_prefix)TARGET_GLOBAL_CFLAGS += \ $(TARGET_mips_CFLAGS) \ - -Ulinux -U__unix -U__unix__ -Umips \ + -U__unix -U__unix__ -Umips \ -fpic -fPIE\ -ffunction-sections \ -fdata-sections \ diff --git a/core/combo/TARGET_linux-mips64.mk b/core/combo/TARGET_linux-mips64.mk index 36b70ada34..969ba10a09 100644 --- a/core/combo/TARGET_linux-mips64.mk +++ b/core/combo/TARGET_linux-mips64.mk @@ -87,7 +87,7 @@ android_config_h := $(call select-android-config-h,linux-mips64) TARGET_GLOBAL_CFLAGS += \ $(TARGET_mips_CFLAGS) \ - -Ulinux -U__unix -U__unix__ -Umips \ + -U__unix -U__unix__ -Umips \ -fpic -fPIE\ -ffunction-sections \ -fdata-sections \