* commit '868b22dd277392cce899d9a980270fbaf8d2f9de': Fix Windows SDK build.
This commit is contained in:
commit
493c61af6a
1 changed files with 5 additions and 0 deletions
|
@ -113,11 +113,16 @@ my_cxx := $(LOCAL_CXX)
|
||||||
my_c_includes := $(LOCAL_C_INCLUDES)
|
my_c_includes := $(LOCAL_C_INCLUDES)
|
||||||
my_generated_sources := $(LOCAL_GENERATED_SOURCES)
|
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)),)
|
||||||
ifeq ($(LOCAL_MODULE_CLASS),EXECUTABLES)
|
ifeq ($(LOCAL_MODULE_CLASS),EXECUTABLES)
|
||||||
my_cflags += -fpie
|
my_cflags += -fpie
|
||||||
else
|
else
|
||||||
my_cflags += -fPIC
|
my_cflags += -fPIC
|
||||||
endif
|
endif
|
||||||
|
endif
|
||||||
|
|
||||||
my_src_files += $(LOCAL_SRC_FILES_$($(my_prefix)$(LOCAL_2ND_ARCH_VAR_PREFIX)ARCH)) $(LOCAL_SRC_FILES_$(my_32_64_bit_suffix))
|
my_src_files += $(LOCAL_SRC_FILES_$($(my_prefix)$(LOCAL_2ND_ARCH_VAR_PREFIX)ARCH)) $(LOCAL_SRC_FILES_$(my_32_64_bit_suffix))
|
||||||
my_shared_libraries += $(LOCAL_SHARED_LIBRARIES_$($(my_prefix)$(LOCAL_2ND_ARCH_VAR_PREFIX)ARCH)) $(LOCAL_SHARED_LIBRARIES_$(my_32_64_bit_suffix))
|
my_shared_libraries += $(LOCAL_SHARED_LIBRARIES_$($(my_prefix)$(LOCAL_2ND_ARCH_VAR_PREFIX)ARCH)) $(LOCAL_SHARED_LIBRARIES_$(my_32_64_bit_suffix))
|
||||||
|
|
Loading…
Reference in a new issue