makefile: Add support for extra library directories on Android (termux)
- removed warning suppression for unused-result and format-truncation
This commit is contained in:
parent
68cfea6a71
commit
cb3d782897
1 changed files with 3 additions and 6 deletions
9
makefile
9
makefile
|
@ -319,6 +319,9 @@ ifeq (${WIN32},) #*nix Environments (&& cygwin)
|
|||
endif
|
||||
ifneq (lib,$(findstring lib,$(UNSUPPORTED_BUILD)))
|
||||
ifeq (Android,$(shell uname -o))
|
||||
ifneq (,$(shell if ${TEST} -d ${PREFIX}/lib; then echo prefixlib; fi))
|
||||
LIBPATH += ${PREFIX}/lib
|
||||
endif
|
||||
ifneq (,$(shell if ${TEST} -d /system/lib; then echo systemlib; fi))
|
||||
LIBPATH += /system/lib
|
||||
endif
|
||||
|
@ -1192,12 +1195,6 @@ ifneq (3,$(GCC_MAJOR_VERSION))
|
|||
ifeq (,$(GCC_WARNINGS_CMD))
|
||||
GCC_WARNINGS_CMD = ${GCC} --help=warnings
|
||||
endif
|
||||
ifneq (,$(findstring -Wunused-result,$(shell $(GCC_WARNINGS_CMD))))
|
||||
CFLAGS_O += -Wno-unused-result
|
||||
endif
|
||||
ifneq (,$(findstring -Wformat-truncation,$(shell $(GCC_WARNINGS_CMD))))
|
||||
CFLAGS_O += -Wno-format-truncation
|
||||
endif
|
||||
endif
|
||||
ifneq (clean,${MAKECMDGOALS})
|
||||
BUILD_FEATURES := $(BUILD_FEATURES). $(COMPILER_NAME)
|
||||
|
|
Loading…
Add table
Reference in a new issue