Consistent use of USE_MINGW
Change-Id: I05e212e5a99639d0196006b9c2ec35072c54f399
This commit is contained in:
parent
76c942c164
commit
594a10ae77
5 changed files with 5 additions and 5 deletions
|
@ -116,7 +116,7 @@ my_generated_sources := $(LOCAL_GENERATED_SOURCES)
|
|||
# MinGW spits out warnings about -fPIC even for -fpie?!) being ignored because
|
||||
# all code is position independent, and then those warnings get promoted to
|
||||
# errors.
|
||||
ifeq ($(strip $(USE_MINGW)),)
|
||||
ifndef USE_MINGW
|
||||
ifeq ($(LOCAL_MODULE_CLASS),EXECUTABLES)
|
||||
my_cflags += -fpie
|
||||
else
|
||||
|
|
|
@ -24,7 +24,7 @@ TOOLS_EXE_SUFFIX := .exe
|
|||
|
||||
# Settings to use MinGW has a cross-compiler under Linux
|
||||
ifneq ($(findstring Linux,$(UNAME)),)
|
||||
ifneq ($(strip $(USE_MINGW)),)
|
||||
ifdef USE_MINGW
|
||||
HOST_ACP_UNAVAILABLE := true
|
||||
TOOLS_EXE_SUFFIX :=
|
||||
$(combo_2nd_arch_prefix)HOST_GLOBAL_CFLAGS += -DUSE_MINGW
|
||||
|
|
|
@ -24,7 +24,7 @@ TOOLS_EXE_SUFFIX := .exe
|
|||
|
||||
# Settings to use MinGW has a cross-compiler under Linux
|
||||
ifneq ($(findstring Linux,$(UNAME)),)
|
||||
ifneq ($(strip $(USE_MINGW)),)
|
||||
ifdef USE_MINGW
|
||||
HOST_ACP_UNAVAILABLE := true
|
||||
TOOLS_EXE_SUFFIX :=
|
||||
HOST_GLOBAL_CFLAGS += -DUSE_MINGW
|
||||
|
|
|
@ -58,7 +58,7 @@ BUILD_OS := $(HOST_OS)
|
|||
# Under Linux, if USE_MINGW is set, we change HOST_OS to Windows to build the
|
||||
# Windows SDK. Only a subset of tools and SDK will manage to build properly.
|
||||
ifeq ($(HOST_OS),linux)
|
||||
ifneq ($(USE_MINGW),)
|
||||
ifdef USE_MINGW
|
||||
HOST_OS := windows
|
||||
endif
|
||||
endif
|
||||
|
|
|
@ -24,7 +24,7 @@ ifeq ($(HOST_OS),linux)
|
|||
LOCAL_LDLIBS += -lrt
|
||||
endif
|
||||
|
||||
ifneq ($(strip $(USE_MINGW)),)
|
||||
ifdef USE_MINGW
|
||||
LOCAL_STATIC_LIBRARIES += libz
|
||||
else
|
||||
LOCAL_LDLIBS += -lz
|
||||
|
|
Loading…
Reference in a new issue