diff options
author | Shin-ichiro KAWASAKI <shinichiro.kawasaki.mg@hitachi.com> | 2009-08-31 16:39:32 +0900 |
---|---|---|
committer | Tony Sim <sim.chinyeow@renesas.com> | 2009-08-31 16:39:32 +0900 |
commit | efecfde19a1af5aacbd77a6124968df2d7a49a83 (patch) | |
tree | 8d00b42d3429177f697dc7a8abf225c39827e16c /libdl/Android.mk | |
parent | 90ec5f2a3f581927ffef55733e8d531890fdc90e (diff) | |
download | bionic-efecfde19a1af5aacbd77a6124968df2d7a49a83.zip bionic-efecfde19a1af5aacbd77a6124968df2d7a49a83.tar.gz bionic-efecfde19a1af5aacbd77a6124968df2d7a49a83.tar.bz2 |
added and modified libdl to support SuperH architecture
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 |