diff --git a/libdl/Android.mk b/libdl/Android.mk index 49cfb0c8a..3d60474f0 100644 --- a/libdl/Android.mk +++ b/libdl/Android.mk @@ -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