2022-02-16 07:24:35 +08:00
|
|
|
APP_CFLAGS := -Wall -Wextra
|
|
|
|
APP_CFLAGS += -fno-stack-protector -fomit-frame-pointer
|
|
|
|
APP_CFLAGS += -Wno-builtin-macro-redefined -D__FILE__=__FILE_NAME__ -Wno-gnu-string-literal-operator-template
|
|
|
|
APP_CPPFLAGS := -std=c++20
|
|
|
|
APP_CONLYFLAGS := -std=c18
|
2022-02-19 02:04:18 +08:00
|
|
|
APP_STL := c++_shared
|
2022-02-16 07:24:35 +08:00
|
|
|
|
|
|
|
ifneq ($(NDK_DEBUG),1)
|
2022-02-19 02:04:18 +08:00
|
|
|
APP_CFLAGS += -Oz
|
2022-02-16 07:24:35 +08:00
|
|
|
APP_CFLAGS += -Wno-unused -Wno-unused-parameter -Werror
|
|
|
|
APP_CFLAGS += -fvisibility=hidden -fvisibility-inlines-hidden
|
|
|
|
APP_CFLAGS += -fno-unwind-tables -fno-asynchronous-unwind-tables
|
2022-02-19 02:04:18 +08:00
|
|
|
APP_LDFLAGS += -Wl,--exclude-libs,ALL -Wl,--gc-sections -Wl,--strip-all
|
2022-02-16 07:24:35 +08:00
|
|
|
endif
|