create the lib64 symbolic links for 64-bits supported architectures (#5075)
authorFlorian Fainelli <florian@openwrt.org>
Thu, 7 May 2009 20:21:21 +0000 (20:21 +0000)
committerFlorian Fainelli <florian@openwrt.org>
Thu, 7 May 2009 20:21:21 +0000 (20:21 +0000)
SVN-Revision: 15698

package/base-files/Makefile

index c47a0f8ba4cb3a40923756dff9a8b5ebee9e2bdb..8a5f67b42fcf4b0c526eb3adf696c54a3acb17f8 100644 (file)
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
 include $(INCLUDE_DIR)/kernel.mk
 
 PKG_NAME:=base-files
-PKG_RELEASE:=18
+PKG_RELEASE:=19
 
 PKG_FILE_DEPENDS:=$(PLATFORM_DIR)/ $(GENERIC_PLATFORM_DIR)/base-files/
 
@@ -24,6 +24,9 @@ ifneq ($(DUMP),1)
   ifeq ($(ARCH),x86_64)
     LIB_SUFFIX:=64
   endif
+  ifeq ($(ARCH),mips64)
+    LIB_SUFFIX:=64
+  endif
 else
   LIBC_VERSION:=<LIBC_VERSION>
   LIBGCC_VERSION:=<LIBGCC_VERSION>
@@ -174,10 +177,12 @@ define Package/base-files$(TARGET)/install
        mkdir -p $(1)/etc/crontabs
        mkdir -p $(1)/jffs
        mkdir -p $(1)/lib/firmware
+       $(if $(LIB_SUFFIX),ln -s lib $(1)/lib$(LIB_SUFFIX))
        mkdir -p $(1)/mnt
        mkdir -p $(1)/proc
        mkdir -p $(1)/tmp
        mkdir -p $(1)/usr/lib
+       $(if $(LIB_SUFFIX),ln -s lib $(1)/usr/lib$(LIB_SUFFIX))
        mkdir -p $(1)/usr/bin
        mkdir -p $(1)/sys
        mkdir -p $(1)/www