From fc0725ec5cc51053c06bf2c67755a5a57a5da621 Mon Sep 17 00:00:00 2001 From: Shih-wei Liao Date: Sat, 28 Jul 2012 00:33:28 -0700 Subject: [PATCH] Install crt(begin|end)_so.o to target library path. BUG=6886348. Change-Id: I176b2c4963d9731b06d10d4e0b92c010a0006b59 --- libc/Android.mk | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/libc/Android.mk b/libc/Android.mk index 4ceb12f20..1a5bdfa77 100644 --- a/libc/Android.mk +++ b/libc/Android.mk @@ -589,6 +589,18 @@ $(GEN): $(LOCAL_PATH)/arch-$(TARGET_ARCH)/bionic/crtend_so.S @mkdir -p $(dir $@) $(TARGET_CC) $(libc_crt_target_so_cflags) -o $@ -c $< ALL_GENERATED_SOURCES += $(GEN) + +GEN := $(TARGET_OUT_SHARED_LIBRARIES)/crtbegin_so.o +$(GEN): $(libc_crt_target_crtstart_so_file) + @mkdir -p $(dir $@) + $(TARGET_CC) $(libc_crt_target_so_cflags) -o $@ -c $< +ALL_GENERATED_SOURCES += $(GEN) + +GEN := $(TARGET_OUT_SHARED_LIBRARIES)/crtend_so.o +$(GEN): $(LOCAL_PATH)/arch-$(TARGET_ARCH)/bionic/crtend_so.S + @mkdir -p $(dir $@) + $(TARGET_CC) $(libc_crt_target_so_cflags) -o $@ -c $< +ALL_GENERATED_SOURCES += $(GEN) endif # TARGET_ARCH == x86 || TARGET_ARCH == arm