am 6dbbb159
: Merge "Consistent use of USE_MINGW"
* commit '6dbbb15997d2cf032b098a33f65387fcd36d478a': Consistent use of USE_MINGW
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user