diff options
Diffstat (limited to 'libdl/Android.mk')
-rw-r--r-- | libdl/Android.mk | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/libdl/Android.mk b/libdl/Android.mk index 150f704..8d56f9a 100644 --- a/libdl/Android.mk +++ b/libdl/Android.mk @@ -36,6 +36,21 @@ LOCAL_MODULE:= libdl LOCAL_ALLOW_UNDEFINED_SYMBOLS := true LOCAL_SYSTEM_SHARED_LIBRARIES := +ifeq ($(TARGET_ARCH),sh) +# for SuperH, additional code is necessary to handle .ctors section. +GEN_SOBEGIN := $(TARGET_OUT_STATIC_LIBRARIES)/sobegin.o +$(GEN_SOBEGIN): $(LOCAL_PATH)/arch-sh/sobegin.S + @mkdir -p $(dir $@) + $(TARGET_CC) -o $@ -c $< + +GEN_SOEND := $(TARGET_OUT_STATIC_LIBRARIES)/soend.o +$(GEN_SOEND): $(LOCAL_PATH)/arch-sh/soend.S + @mkdir -p $(dir $@) + $(TARGET_CC) -o $@ -c $< + +LOCAL_ADDITIONAL_DEPENDENCIES := $(GEN_SOBEGIN) $(GEN_SOEND) +endif + include $(BUILD_SHARED_LIBRARY) BUILD_DLTEST:=0 |