Use arch-specific variable to set up the x86 ld flags.
Bug: 11654773 Change-Id: I9e9075bac1303cfa39b0f717dd74625ce1dd5fa5
This commit is contained in:
		@@ -18,9 +18,8 @@ include $(CLEAR_VARS)
 | 
			
		||||
LOCAL_LDFLAGS := -Wl,--exclude-libs=libgcc.a
 | 
			
		||||
 | 
			
		||||
# for x86, exclude libgcc_eh.a for the same reasons as above
 | 
			
		||||
ifeq ($(TARGET_ARCH),$(filter $(TARGET_ARCH),x86 x86_64))
 | 
			
		||||
LOCAL_LDFLAGS += -Wl,--exclude-libs=libgcc_eh.a
 | 
			
		||||
endif
 | 
			
		||||
LOCAL_LDFLAGS_x86 := -Wl,--exclude-libs=libgcc_eh.a
 | 
			
		||||
LOCAL_LDFLAGS_x86_64 := $(LOCAL_LDFLAGS_x86)
 | 
			
		||||
 | 
			
		||||
LOCAL_SRC_FILES:= libdl.c
 | 
			
		||||
LOCAL_CFLAGS := -Wall -Wextra -Werror
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user