forked from openkylin/platform_build
Merge "Strip all symbols on x86"
This commit is contained in:
commit
9335001d5d
|
@ -95,7 +95,7 @@ HOST_CXX := g++
|
|||
endif # $(HOST_TOOLCHAIN_PREFIX)-gcc exists
|
||||
HOST_AR := $(AR)
|
||||
HOST_STRIP := $(STRIP)
|
||||
HOST_STRIP_COMMAND = $(HOST_STRIP) --strip-debug $< -o $@
|
||||
HOST_STRIP_COMMAND = $(HOST_STRIP) --strip-all $< -o $@
|
||||
|
||||
HOST_GLOBAL_CFLAGS += -isysroot $(mac_sdk_root) -mmacosx-version-min=$(mac_sdk_version) -DMACOSX_DEPLOYMENT_TARGET=$(mac_sdk_version)
|
||||
HOST_GLOBAL_LDFLAGS += -isysroot $(mac_sdk_root) -Wl,-syslibroot,$(mac_sdk_root) -mmacosx-version-min=$(mac_sdk_version)
|
||||
|
|
|
@ -54,9 +54,9 @@ $(combo_2nd_arch_prefix)TARGET_LD := $($(combo_2nd_arch_prefix)TARGET_TOOLS_PREF
|
|||
$(combo_2nd_arch_prefix)TARGET_STRIP := $($(combo_2nd_arch_prefix)TARGET_TOOLS_PREFIX)strip$(HOST_EXECUTABLE_SUFFIX)
|
||||
|
||||
ifeq ($(TARGET_BUILD_VARIANT),user)
|
||||
$(combo_2nd_arch_prefix)TARGET_STRIP_COMMAND = $(PRIVATE_STRIP) --strip-debug $< -o $@
|
||||
$(combo_2nd_arch_prefix)TARGET_STRIP_COMMAND = $(PRIVATE_STRIP) --strip-all $< -o $@
|
||||
else
|
||||
$(combo_2nd_arch_prefix)TARGET_STRIP_COMMAND = $(PRIVATE_STRIP) --strip-debug $< -o $@ && \
|
||||
$(combo_2nd_arch_prefix)TARGET_STRIP_COMMAND = $(PRIVATE_STRIP) --strip-all $< -o $@ && \
|
||||
$(PRIVATE_OBJCOPY) --add-gnu-debuglink=$< $@
|
||||
endif
|
||||
|
||||
|
|
|
@ -56,9 +56,9 @@ TARGET_LD := $(TARGET_TOOLS_PREFIX)ld$(HOST_EXECUTABLE_SUFFIX)
|
|||
TARGET_STRIP := $(TARGET_TOOLS_PREFIX)strip$(HOST_EXECUTABLE_SUFFIX)
|
||||
|
||||
ifeq ($(TARGET_BUILD_VARIANT),user)
|
||||
TARGET_STRIP_COMMAND = $(PRIVATE_STRIP) --strip-debug $< -o $@
|
||||
TARGET_STRIP_COMMAND = $(PRIVATE_STRIP) --strip-all $< -o $@
|
||||
else
|
||||
TARGET_STRIP_COMMAND = $(PRIVATE_STRIP) --strip-debug $< -o $@ && \
|
||||
TARGET_STRIP_COMMAND = $(PRIVATE_STRIP) --strip-all $< -o $@ && \
|
||||
$(PRIVATE_OBJCOPY) --add-gnu-debuglink=$< $@
|
||||
endif
|
||||
|
||||
|
|
Loading…
Reference in New Issue