OpenWrt Forum Archive

Topic: uClibc.so.0 nedded by libc.so

The content of this topic has been archived on 31 Mar 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

I know that in order to correct this error;  i have to add this line to my Makefie

LDFLAGS = -rpath-link /home/saad/OpenWrt-SDK-atheros-for-Linux-i686-gcc-4.3.3+cs_uClibc-0.9.30.1/staging_dir/toolchain-mips_gcc-4.3.3+cs_uClibc-0.9.30.1/lib/ld-uClibc.so.0

Can anybody tell me that have I placed it correctly in my Makefile .

##############################################
include $(TOPDIR)/rules.mk
# Name and release number of this package
PKG_NAME:=helloworld
PKG_RELEASE:=1
PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)
include $(INCLUDE_DIR)/package.mk
define Package/helloworld
    SECTION:=utils
    CATEGORY:=Utilities
    TITLE:=Helloworld -- prints a message
    LDFLAGS = -rpath-link /home/saad/OpenWrt-SDK-atheros-for-Linux-i686-gcc-4.3.3+cs_uClibc-0.9.30.1/staging_dir/toolchain-mips_gcc-4.3.3+cs_uClibc-0.9.30.1/lib/ld-uClibc.so.0   
endef
define Build/Prepare
    mkdir -p $(PKG_BUILD_DIR)
    $(CP) ./src/* $(PKG_BUILD_DIR)/
endef
define Package/helloworld/install
    $(INSTALL_DIR) $(1)/bin
    $(INSTALL_BIN) $(PKG_BUILD_DIR)/helloworld $(1)/bin/
endef
$(eval $(call BuildPackage,helloworld))

By adding the below line, the problem was solved

TARGET_LDFLAGS += --rpath-link /home/saad/OpenWrt-SDK-atheros-for-Linux-i686-gcc-4.3.3+cs_uClibc-0.9.30.1/staging_dir/target-mips_uClibc-0.9.30.1/root-atheros/lib/ld-uClibc.so.0

(Last edited by 09bicsessarwar on 16 Feb 2013, 22:16)

The discussion might have continued from here.