diff options
Diffstat (limited to 'adb')
| -rw-r--r-- | adb/Android.mk | 35 |
1 files changed, 3 insertions, 32 deletions
diff --git a/adb/Android.mk b/adb/Android.mk index b62e856b..0a7591e3 100644 --- a/adb/Android.mk +++ b/adb/Android.mk @@ -74,16 +74,7 @@ else LOCAL_SRC_FILES += fdevent.c endif -LOCAL_CFLAGS += -g -DADB_HOST=1 -Wall -Wno-unused-parameter -# adb can't be built without optimizations, so we enforce -O2 if no -# other optimization flag is set - but we don't override what the global -# flags are saying if something else is given (-Os or -O3 are useful) -ifeq ($(findstring -O, $(HOST_GLOBAL_CFLAGS)),) -LOCAL_CFLAGS += -O2 -endif -ifneq ($(findstring -O0, $(HOST_GLOBAL_CFLAGS)),) -LOCAL_CFLAGS += -O2 -endif +LOCAL_CFLAGS += -O2 -g -DADB_HOST=1 -Wall -Wno-unused-parameter LOCAL_CFLAGS += -D_XOPEN_SOURCE -D_GNU_SOURCE LOCAL_MODULE := adb @@ -126,16 +117,7 @@ LOCAL_SRC_FILES := \ log_service.c \ utils.c -LOCAL_CFLAGS := -g -DADB_HOST=0 -Wall -Wno-unused-parameter -# adb can't be built without optimizations, so we enforce -O2 if no -# other optimization flag is set - but we don't override what the global -# flags are saying if something else is given (-Os or -O3 are useful) -ifeq ($(findstring -O, $(TARGET_GLOBAL_CFLAGS)),) -LOCAL_CFLAGS += -O2 -endif -ifneq ($(findstring -O0, $(TARGET_GLOBAL_CFLAGS)),) -LOCAL_CFLAGS += -O2 -endif +LOCAL_CFLAGS := -O2 -g -DADB_HOST=0 -Wall -Wno-unused-parameter LOCAL_CFLAGS += -D_XOPEN_SOURCE -D_GNU_SOURCE ifneq (,$(filter userdebug eng,$(TARGET_BUILD_VARIANT))) @@ -182,6 +164,7 @@ LOCAL_SRC_FILES := \ fdevent.c LOCAL_CFLAGS := \ + -O2 \ -g \ -DADB_HOST=1 \ -DADB_HOST_ON_TARGET=1 \ @@ -190,18 +173,6 @@ LOCAL_CFLAGS := \ -D_XOPEN_SOURCE \ -D_GNU_SOURCE -# adb can't be built without optimizations, so we enforce -O2 if no -# other optimization flag is set - but we don't override what the global -# flags are saying if something else is given (-Os or -O3 are useful) -ifeq ($(findstring -O, $(TARGET_GLOBAL_CFLAGS)),) -LOCAL_CFLAGS += -O2 -endif -ifneq ($(findstring -O0, $(TARGET_GLOBAL_CFLAGS)),) -LOCAL_CFLAGS += -O2 -endif - -LOCAL_C_INCLUDES += external/openssl/include - LOCAL_MODULE := adb LOCAL_STATIC_LIBRARIES := libzipfile libunz libcutils |
